/**
 * PDM Booking Calendar - Public Styles
 */

/* Wrapper */
.pdm-booking-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Resource Selector */
.pdm-resource-selector {
    margin-bottom: 20px;
}

.pdm-resource-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.pdm-resource-selector select {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: #fff;
}

.pdm-resource-selector select:focus {
    border-color: #2271b1;
    outline: none;
}

.pdm-selected-resource {
    padding: 15px;
    background: #f0f6fc;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Calendar Container */
.pdm-calendar-container {
    margin-bottom: 20px;
    overflow-x: auto;
}

/* Calendar Navigation */
.pdm-calendar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    flex-wrap: wrap;
}

.pdm-nav-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.pdm-nav-btn:hover {
    background: #135e96;
}

.pdm-nav-btn:active {
    background: #0a4b78;
}

.pdm-nav-today {
    background: #666;
}

.pdm-nav-today:hover {
    background: #555;
}

.pdm-nav-range {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    min-width: 200px;
    text-align: center;
}

.pdm-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Individual Month */
.pdm-month {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pdm-month-header {
    background: #2271b1;
    color: #fff;
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.pdm-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.pdm-weekday {
    padding: 10px 5px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.pdm-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 5px;
}

.pdm-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.pdm-day:hover:not(.pdm-day-disabled):not(.pdm-day-booked):not(.pdm-day-pending):not(.pdm-day-blocked):not(.pdm-day-locked) {
    background: #e3f2fd;
}

.pdm-day-empty {
    cursor: default;
}

.pdm-day-past {
    color: #ccc;
    cursor: not-allowed;
}

.pdm-day-disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* 2027 season lock: shown but not bookable for restricted resources. */
.pdm-day-locked {
    color: #bbb;
    background: repeating-linear-gradient(
        45deg,
        #f5f5f5,
        #f5f5f5 4px,
        #eaeaea 4px,
        #eaeaea 8px
    );
    cursor: not-allowed;
}

/* Day Status Colors */
.pdm-day-available {
    background: #e8f5e9;
    color: #2e7d32;
}

.pdm-day-booked {
    background: #b71c1c;
    color: #ffffff;
    cursor: not-allowed;
}

.pdm-day-pending {
    background: #f9a825;
    color: #ffffff;
    cursor: not-allowed;
}

.pdm-day-blocked {
    background: #757575;
    color: #ffffff;
    cursor: not-allowed;
}

.pdm-day:hover:not(.pdm-day-disabled):not(.pdm-day-booked):not(.pdm-day-pending):not(.pdm-day-blocked) {
    /* Handled below */
}

.pdm-day-selected {
    background: #2271b1 !important;
    color: #fff !important;
}

.pdm-day-in-range {
    background: #bbdefb !important;
    color: #1565c0 !important;
}

/* Calendar Legend */
.pdm-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 15px;
}

.pdm-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdm-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.pdm-legend-color.pdm-available {
    background: #e8f5e9;
}

.pdm-legend-color.pdm-booked {
    background: #b71c1c;
}

.pdm-legend-color.pdm-pending {
    background: #f9a825;
}

.pdm-legend-color.pdm-blocked {
    background: #757575;
}

.pdm-legend-color.pdm-selected {
    background: #2271b1;
}

/* Minimum Booking Days Notice */
.pdm-min-days-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 8px 14px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 14px;
}

/* Calendar Instructions */
.pdm-calendar-instructions {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}

/* Season pricing, shown above the RV/Boat Storage form ([pdm_storage_application pricing="1"]) */
.pdm-pricing {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 25px;
}

.pdm-pricing-title {
    margin: 0 0 10px;
    font-size: 20px;
    color: #333;
}

.pdm-pricing-note {
    margin: 0 0 15px;
    color: #555;
}

.pdm-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.pdm-pricing-item h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #333;
}

.pdm-pricing-item p {
    margin: 0;
    line-height: 1.7;
    color: #444;
}

.pdm-pricing-or {
    font-weight: 600;
    font-size: 12px;
    color: #888;
}

/* Selected Dates Display */
.pdm-selected-dates {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.pdm-selected-dates strong {
    color: #1565c0;
}

#pdm-date-range {
    font-weight: 500;
}

#pdm-total-nights {
    color: #666;
}

#pdm-estimated-cost {
    font-weight: 600;
    color: #2e7d32;
}

.pdm-clear-dates {
    background: #fff;
    border: 1px solid #c62828;
    color: #c62828;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.pdm-clear-dates:hover {
    background: #c62828;
    color: #fff;
}

/* Booking Form */
.pdm-booking-form-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pdm-booking-form .pdm-form-row,
.pdm-application-form .pdm-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.pdm-booking-form .pdm-form-field,
.pdm-application-form .pdm-form-field {
    flex: 1;
    min-width: 200px;
}

.pdm-booking-form .pdm-form-field.pdm-full-width,
.pdm-application-form .pdm-form-field.pdm-full-width {
    flex-basis: 100%;
}

.pdm-booking-form label,
.pdm-application-form .pdm-form-field > label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.pdm-booking-form label .required,
.pdm-application-form label .required {
    color: #c62828;
}

.pdm-booking-form input[type="text"],
.pdm-booking-form input[type="email"],
.pdm-booking-form input[type="tel"],
.pdm-booking-form textarea,
.pdm-application-form input[type="text"],
.pdm-application-form input[type="email"],
.pdm-application-form input[type="tel"],
.pdm-application-form textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.pdm-booking-form input:focus,
.pdm-booking-form textarea:focus,
.pdm-application-form input[type="text"]:focus,
.pdm-application-form input[type="email"]:focus,
.pdm-application-form input[type="tel"]:focus,
.pdm-application-form textarea:focus {
    border-color: #2271b1;
    outline: none;
}

.pdm-booking-form textarea,
.pdm-application-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Submit Button */
.pdm-submit-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    max-width: 300px;
}

.pdm-submit-btn:hover {
    background: #135e96;
}

.pdm-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Form Messages */
.pdm-form-message {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.pdm-form-message.pdm-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.pdm-form-message.pdm-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Loading State */
.pdm-loading {
    position: relative;
    pointer-events: none;
}

.pdm-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    animation: pdm-spin 1s linear infinite;
}

@keyframes pdm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .pdm-booking-wrapper {
        padding: 10px;
    }

    .pdm-calendar-nav {
        gap: 10px;
        padding: 10px;
    }

    .pdm-nav-btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .pdm-nav-range {
        font-size: 14px;
        min-width: auto;
        order: -1;
        width: 100%;
    }

    .pdm-calendar-grid {
        grid-template-columns: 1fr;
    }

    .pdm-calendar-legend {
        justify-content: center;
    }

    .pdm-selected-dates {
        flex-direction: column;
        text-align: center;
    }

    .pdm-booking-form .pdm-form-row,
    .pdm-application-form .pdm-form-row {
        flex-direction: column;
        gap: 15px;
    }

    .pdm-booking-form .pdm-form-field,
    .pdm-application-form .pdm-form-field {
        min-width: 100%;
    }

    .pdm-submit-btn {
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .pdm-day {
        font-size: 12px;
    }

    .pdm-weekday {
        font-size: 10px;
        padding: 8px 2px;
    }
}

/* Calendar Only Mode - no clicking */
.pdm-calendar-only .pdm-day {
    cursor: default;
}

.pdm-calendar-only .pdm-day:hover {
    background: inherit;
}

.pdm-calendar-only .pdm-day-available:hover {
    background: #e8f5e9;
}

/* Stripe Card Authorization Section */
.pdm-stripe-card-row {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #e8e8e8;
}

.pdm-stripe-card-row .pdm-form-field {
    position: relative;
}

.pdm-stripe-card-row .pdm-form-field > label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.pdm-stripe-card-row .pdm-form-field > label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 14px;
    background: linear-gradient(135deg, #635bff 0%, #7c3aed 100%);
    border-radius: 3px;
    flex-shrink: 0;
}

.pdm-card-element {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pdm-card-element:hover {
    border-color: #bbb;
}

.pdm-card-element.StripeElement--focus {
    border-color: #635bff;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

.pdm-card-element.StripeElement--invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.pdm-card-errors {
    color: #dc3545;
    font-size: 13px;
    margin-top: 8px;
    min-height: 20px;
    font-weight: 500;
}

.pdm-card-notice {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #555;
    font-size: 13px;
    margin-top: 10px;
    padding: 10px 14px;
    background: #f0f4ff;
    border-radius: 6px;
    border: 1px solid #dce3f5;
    line-height: 1.4;
}

.pdm-card-notice::before {
    content: '🔒';
    flex-shrink: 0;
    font-size: 14px;
}

/* Payment Method Chooser (booking form) */
.pdm-payment-method-row {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #e8e8e8;
}

.pdm-payment-method-row > .pdm-form-field > label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

/* Sits directly under the payment pills, so the card row's own divider would
   double up on the one above. */
.pdm-payment-method-row + .pdm-stripe-card-row {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.pdm-etransfer-instructions {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    padding: 14px 16px;
    background: #f0f4ff;
    border: 1px solid #dce3f5;
    border-radius: 6px;
}

.pdm-etransfer-instructions p {
    margin: 0 0 8px;
}

.pdm-etransfer-instructions p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════
   FOLIC Application Form - Multi-Step
   ═══════════════════════════════════════════ */

/* Wrapper */
.pdm-application-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Embedded FOLIC form inside calendar shortcodes */
.pdm-booking-wrapper .pdm-folic-embedded {
    max-width: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 0;
}

/* Progress Bar */
.pdm-app-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
    counter-reset: step;
}

.pdm-app-progress::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #ddd;
    z-index: 0;
}

.pdm-app-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.pdm-app-step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    border: 3px solid #ddd;
}

.pdm-app-step-label {
    font-size: 12px;
    color: #888;
    text-align: center;
    font-weight: 500;
    transition: color 0.3s ease;
}

.pdm-app-progress-step.active .pdm-app-step-num {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.pdm-app-progress-step.active .pdm-app-step-label {
    color: #2271b1;
    font-weight: 600;
}

.pdm-app-progress-step.current .pdm-app-step-num {
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.2);
}

/* Steps */
.pdm-app-step h2 {
    font-size: 22px;
    color: #1d2327;
    margin: 0 0 6px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
}

.pdm-app-subtitle {
    color: #646970;
    margin: 0 0 20px 0;
    font-size: 14px;
}
.pdm-field-hint {
    color: #646970;
    font-size: 13px;
    margin: 4px 0 0 0;
    font-style: italic;
}
.pdm-existing-member-notice {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 4px;
}

/* Vehicle count for the carload pass — one pass per vehicle. */
.pdm-carload-qty {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 4px;
}

.pdm-carload-qty select,
.pdm-carload-qty input[type="number"] {
    max-width: 220px;
}

.pdm-storage-membership-note {
    background: #fcf6f0;
    border-left: 4px solid #d63638;
    padding: 12px 16px;
    margin: 0 0 16px 0;
    border-radius: 4px;
}

.pdm-storage-membership-note strong {
    display: block;
    margin-bottom: 4px;
    color: #b32d2e;
}

.pdm-storage-membership-note p {
    margin: 0 0 8px 0;
    font-size: 13px;
}

.pdm-storage-membership-fees {
    margin: 0 0 8px 0;
    padding-left: 18px;
    font-size: 13px;
}

.pdm-storage-membership-fees li {
    margin: 2px 0;
}

/* Navigation */
.pdm-app-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pdm-btn-primary {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.pdm-btn-primary:hover {
    background: #135e96;
}

.pdm-btn-primary:disabled {
    background: #a7aaad;
    cursor: not-allowed;
}

.pdm-btn-secondary {
    background: #f0f0f1;
    color: #1d2327;
    border: 1px solid #c3c4c7;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.pdm-btn-secondary:hover {
    background: #e0e0e0;
}

/* Radio Cards (Membership) */
.pdm-membership-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.pdm-radio-card {
    display: block;
    cursor: pointer;
}

.pdm-radio-card input[type="radio"] {
    display: none;
}

.pdm-radio-card-body {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 14px 18px;
    transition: all 0.2s;
}

.pdm-radio-card-body strong {
    display: block;
    font-size: 15px;
    color: #1d2327;
    margin-bottom: 4px;
}

.pdm-radio-card-body p {
    margin: 0;
    font-size: 13px;
    color: #646970;
}

.pdm-radio-card input:checked + .pdm-radio-card-body {
    border-color: #2271b1;
    background: #f0f6fc;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Radio Pills (Fee Type, Payment) */
.pdm-fee-type-options,
.pdm-payment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.pdm-radio-pill {
    cursor: pointer;
}

.pdm-radio-pill input {
    display: none;
}

.pdm-pill-body {
    display: inline-block;
    border: 2px solid #ddd;
    border-radius: 24px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    color: #1d2327;
}

.pdm-pill-body em {
    font-style: normal;
    font-weight: 600;
    color: #2271b1;
}

.pdm-radio-pill input:checked + .pdm-pill-body {
    border-color: #2271b1;
    background: #2271b1;
    color: #fff;
}

.pdm-radio-pill input:checked + .pdm-pill-body em {
    color: #fff;
}

.pdm-membership-fee-display,
.pdm-lodging-total {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 12px 16px;
    font-size: 16px;
    margin: 16px 0;
    border-radius: 0 4px 4px 0;
}

.pdm-qualifier-row {
    margin-top: 16px;
}

/* Checkbox Cards (Lodging) */
.pdm-lodging-item {
    margin-bottom: 12px;
}

.pdm-check-card {
    display: block;
    cursor: pointer;
}

.pdm-check-card input[type="checkbox"] {
    display: none;
}

.pdm-check-card-body {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 14px 18px;
    transition: all 0.2s;
}

.pdm-check-card-body strong {
    font-size: 15px;
    color: #1d2327;
}

.pdm-check-card-body p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #646970;
}

.pdm-check-card input:checked + .pdm-check-card-body {
    border-color: #00a32a;
    background: #f0faf0;
    box-shadow: 0 0 0 1px #00a32a;
}

.pdm-lodging-options {
    background: #fafafa;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 14px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.pdm-lodging-options label {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-weight: 500;
    color: #646970;
    gap: 4px;
}

.pdm-lodging-options select,
.pdm-lodging-options input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.pdm-lodging-fixed-price {
    font-size: 15px;
    font-weight: 600;
    color: #2271b1;
    margin: 0;
}

/* Stay dates for services billed per night/week/month.
   .pdm-lodging-options is a flex row, so this takes a full-width basis to sit
   on its own line beneath the duration chooser. */
.pdm-lodging-dates {
    flex: 0 0 100%;
    width: 100%;
    border-top: 1px solid #e5e5e5;
    padding-top: 14px;
    margin-top: 2px;
}

.pdm-lodging-dates .pdm-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
}

.pdm-lodging-dates .pdm-form-field {
    flex: 1 1 200px;
}

.pdm-lodging-dates input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    max-width: 260px;
}

.pdm-lodging-rate-info {
    font-size: 13px;
    color: #646970;
    margin: 12px 0 0;
}

.pdm-lodging-calculated {
    display: inline-block;
    color: #2271b1;
    font-size: 15px;
    margin-left: 4px;
}

@media (max-width: 600px) {
    .pdm-lodging-dates .pdm-form-row {
        flex-direction: column;
    }

    .pdm-lodging-dates input[type="date"] {
        max-width: 100%;
    }
}

/* Review Summary */
.pdm-app-summary {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.pdm-app-summary h4 {
    font-size: 14px;
    color: #2271b1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.pdm-app-summary h4:not(:first-child) {
    margin-top: 16px;
}

.pdm-app-summary p {
    margin: 4px 0;
    font-size: 14px;
    color: #1d2327;
}

.pdm-app-summary .pdm-summary-label {
    color: #646970;
    display: inline-block;
    min-width: 140px;
}

/* Cost Table */
.pdm-cost-breakdown {
    margin-bottom: 24px;
}

.pdm-cost-table {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    border-collapse: collapse;
}

.pdm-cost-table td {
    padding: 8px 12px;
    font-size: 15px;
}

.pdm-cost-table .pdm-cost-value {
    text-align: right;
    font-weight: 500;
    font-family: monospace;
    font-size: 15px;
}

.pdm-cost-subtotal td {
    border-top: 1px solid #ddd;
}

.pdm-cost-total td {
    border-top: 2px solid #2271b1;
    font-size: 18px;
}

.pdm-cost-total .pdm-cost-value {
    color: #2271b1;
    font-size: 18px;
}

/* Payment Note */
.pdm-payment-note {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-top: 0;
}

/* Agreement */
.pdm-agreement {
    background: #fffbe6;
    border: 1px solid #dba617;
    border-radius: 4px;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 14px;
}

.pdm-agreement input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.pdm-agreement a {
    color: #2271b1;
    font-weight: 600;
}

/* Signature */
.pdm-signature-row {
    margin-top: 16px;
}

.pdm-signature-input {
    font-family: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive;
    font-size: 22px;
    padding: 10px 14px;
}

.pdm-signature-note {
    margin: 6px 0 0 0;
    font-size: 12px;
    color: #646970;
    font-style: italic;
}

/* Application Submit */
.pdm-app-submit {
    background: #00a32a;
    padding: 14px 36px;
    font-size: 16px;
}

.pdm-app-submit:hover {
    background: #007017;
}

/* Field Errors */
.pdm-app-field-error {
    color: #b32d2e;
    font-size: 13px;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

.pdm-input-error {
    border-color: #b32d2e !important;
    box-shadow: 0 0 0 1px #b32d2e !important;
}

/* Summary Table */
.pdm-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
}

.pdm-summary-table td {
    padding: 4px 8px;
    font-size: 14px;
    vertical-align: top;
}

.pdm-summary-table td:first-child {
    color: #646970;
    white-space: nowrap;
    width: 140px;
}

.pdm-summary-qualifier {
    font-size: 13px;
    color: #646970;
    font-style: italic;
}

/* Form Message */
.pdm-app-message {
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 15px;
    margin-top: 16px;
}

.pdm-app-message.pdm-success {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.pdm-app-message.pdm-error {
    background: #fce4ec;
    border: 1px solid #ef5350;
    color: #c62828;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .pdm-app-progress {
        gap: 4px;
    }

    .pdm-app-step-label {
        font-size: 10px;
    }

    .pdm-app-step-num {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .pdm-fee-type-options,
    .pdm-payment-options {
        flex-direction: column;
    }

    .pdm-app-nav {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .pdm-app-nav button {
        width: 100%;
    }

    .pdm-lodging-options {
        flex-direction: column;
    }

    .pdm-cost-table {
        max-width: 100%;
    }
}

/* ── Hall rental fields (Conference Centre bookings) ────────────────── */
.pdm-rental-heading {
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

.pdm-rental-intro {
    margin: 0 0 12px;
    font-size: 14px;
    color: #50575e;
}

.pdm-rental-facility-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px 16px;
    margin-bottom: 18px;
}

.pdm-rental-fields .pdm-rental-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.pdm-rental-fields .pdm-rental-check:has(input:checked) {
    border-color: #2271b1;
    background: #f0f6fc;
}

.pdm-rental-fields .pdm-rental-check input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
}

.pdm-rental-check-label {
    flex: 1 1 auto;
    line-height: 1.3;
}

/* ==========================================================================
   RV / Boat Storage form ([pdm_storage_application])
   ========================================================================== */

.pdm-storage-fields {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 16px 18px 4px;
    margin: 0 0 28px 0;
}

.pdm-storage-fields .pdm-form-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    background: #fff;
}

.pdm-storage-fields .pdm-storage-rate-info {
    margin: 4px 0 12px;
    font-size: 13px;
    color: #555;
}

.pdm-storage-fields .pdm-storage-calculated {
    display: block;
    margin-top: 4px;
    color: #1d2327;
}

/* Where the membership form's storage line used to be: a pointer to the
   standalone storage form. */
.pdm-storage-pointer {
    background: #fff8e6;
    border-left: 4px solid #dba617;
    padding: 12px 16px;
    margin: 0 0 16px 0;
    border-radius: 4px;
}

.pdm-storage-pointer strong {
    display: block;
    margin-bottom: 4px;
}

.pdm-storage-pointer p {
    margin: 0;
    font-size: 13px;
}

.pdm-storage-pointer a {
    font-weight: 600;
    white-space: nowrap;
}

/* Storage waiver (storage form, review step): the waiver text, English then
   French, followed by the tick box that accepts it. */
.pdm-waiver {
    margin: 24px 0 8px;
}

.pdm-waiver h3 {
    margin-bottom: 8px;
}

.pdm-waiver-text {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #1d2327;
}

.pdm-waiver-text p {
    margin: 0 0 10px;
}

.pdm-waiver-text p:last-child {
    margin-bottom: 0;
}

.pdm-waiver-text hr {
    border: 0;
    border-top: 1px dashed #c3c4c7;
    margin: 12px 0;
}

.pdm-waiver-accept {
    display: block;
    background: #fffbe6;
    border: 1px solid #dba617;
    border-radius: 4px;
    padding: 14px 18px;
    margin-top: 10px;
    font-size: 14px;
    cursor: pointer;
}

.pdm-waiver-accept input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}
