
/* =====================================================
   RANTHAMBORE WILD VENTURES BOOKING FORM
   Clean, Responsive CSS
===================================================== */

.rwv-booking-shell,
.rwv-booking-shell * {
    box-sizing: border-box;
}

.rwv-booking-shell {
    --rwv-orange: #f66b00;
    --rwv-maroon: #650000;
    --rwv-ink: #222;

    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    width: 100%;
    max-width: 1120px;
    margin: 14px auto;
    padding: 0;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .10);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--rwv-ink);
}

/* CALENDAR */

.rwv-calendar-panel {
    min-width: 0;
    padding: 16px;
    border: 2px solid #b8c2bc;
    border-right: 1px solid #dedede;
    border-radius: 8px;
    background: #fff;
}

.rwv-calendar-top {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
}

.rwv-month-label {
    margin: 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: #111;
}

.rwv-month-prev,
.rwv-month-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f8f8f8;
    color: #111;
    font-size: 21px;
    cursor: pointer;
}

.rwv-month-next {
    background: var(--rwv-maroon);
    color: #fff;
    border-color: var(--rwv-maroon);
}

.rwv-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 1px solid #c7cfca;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}

.rwv-weekday {
    min-width: 0;
    padding: 8px 1px;
    text-align: center;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    color: #333;
    background: #f1f4f2;
    border-right: 1px solid #c7cfca;
    border-bottom: 1px solid #c7cfca;
}

.rwv-days {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    border-left: 1px solid #c7cfca;
    border-top: 0;
}

.rwv-day {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-right: 1px solid #c7cfca;
    border-bottom: 1px solid #c7cfca;
    border-radius: 0;
    background: #fff;
    color: #222;
    font: 13px Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.rwv-day:hover:not(:disabled),
.rwv-day:focus-visible {
    background: #fff0e3;
    color: #a94f00;
    outline: 1px solid var(--rwv-orange);
    outline-offset: -1px;
}

.rwv-day.is-outside {
    color: #b7b7b7;
    background: #f8f8f8;
}

.rwv-day:disabled {
    color: #c6c6c6;
    background: #f5f5f5;
    cursor: not-allowed;
}

.rwv-day.is-selected {
    background: var(--rwv-orange);
    color: #fff;
    font-weight: 700;
}

.rwv-calendar-help {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.5;
    color: #666;
}

/* FORM PANEL */

.rwv-form-panel {
    min-width: 0;
    padding: 18px 22px;
}

.rwv-form-panel > h2 {
    margin: 0 0 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid #f0dfd2;
    text-align: center;
    color: #c65c00;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;
}

.rwv-intro {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.5;
    color: #565656;
}

/* FIELD GRID */

.rwv-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 8px;
    margin: 0;
    padding: 0;
}

.rwv-fields > *,
.rwv-fields .rwv-full-field {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.rwv-fields .rwv-full-field {
    grid-column: 1 / -1;
}

.rwv-fields label {
    display: block;
    min-width: 0;
    margin: 0;
    color: #222;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

/* INPUTS AND SELECTS */

.rwv-fields input,
.rwv-fields select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 38px;
    min-height: 38px;
    margin: 4px 0 0;
    padding: 0 9px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font: 13px Arial, Helvetica, sans-serif;
    box-shadow: none;
}

.rwv-fields input:focus,
.rwv-fields select:focus,
.rwv-details-field textarea:focus {
    outline: 2px solid #f6b17d;
    outline-offset: 1px;
    border-color: var(--rwv-orange);
}

/* DATE MESSAGE */

.rwv-date-message {
    margin: 2px 0 6px;
    color: #a04b00;
    font-size: 11px;
    line-height: 1.4;
}

/* ADDITIONAL REQUIREMENTS */

.rwv-details-field {
    display: block;
    margin: 8px 0 0;
    padding: 0;
    color: #222;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.rwv-details-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    height: 65px;
    min-height: 65px;
    margin: 4px 0 0;
    padding: 8px 9px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font: 13px/1.4 Arial, Helvetica, sans-serif;
    resize: vertical;
    box-shadow: none;
}

/* HIDE CONSENT */

.rwv-consent {
    display: none !important;
}

/* SUBMIT BUTTON */

.rwv-submit-button {
    display: block;
    width: 100%;
    min-height: 40px;
    margin: 9px 0 0;
    padding: 9px 12px;
    border: 0;
    border-radius: 4px;
    background: var(--rwv-orange);
    color: #fff;
    font: 700 14px/1.3 Arial, Helvetica, sans-serif;
    text-align: center;
    cursor: pointer;
}

.rwv-submit-button:hover {
    background: #db5d00;
}

.rwv-submit-button:focus-visible {
    outline: 2px solid var(--rwv-maroon);
    outline-offset: 2px;
}

/* SMALL PRINT AND SUPPORT */

.rwv-small-print {
    margin: 6px 0;
    color: #777;
    font-size: 10px;
    line-height: 1.45;
}

.rwv-support {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    font-size: 12px;
    line-height: 1.4;
}

.rwv-support span {
    font-weight: 700;
}

.rwv-support a {
    color: #a94f00;
    text-decoration: none;
}

.rwv-support a:hover {
    text-decoration: underline;
}

/* HIDDEN CONDITIONAL FIELDS */

.rwv-booking-shell [hidden] {
    display: none !important;
}

/* SUCCESS AND ERROR NOTICES */

.rwv-notice {
    width: 100%;
    max-width: 1120px;
    margin: 12px auto;
    padding: 12px 15px;
    border-radius: 6px;
    font: 14px/1.5 Arial, Helvetica, sans-serif;
}

.rwv-success {
    background: #edf8ef;
    border: 1px solid #b8dfc0;
    color: #205b2c;
}

.rwv-error {
    background: #fff0ef;
    border: 1px solid #edc0bc;
    color: #8d2118;
}

/* RECEIPT */

.rwv-receipt {
    width: 100%;
    max-width: 1120px;
    margin: 16px auto 22px;
    padding: 22px;
    border: 1px solid #e7e1da;
    border-top: 4px solid #df7625;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .08);
    font-family: Arial, Helvetica, sans-serif;
    color: #252525;
}

.rwv-receipt-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #e8f6ec;
    color: #20783b;
    font-size: 24px;
    font-weight: 700;
}

.rwv-receipt h2 {
    margin: 0 0 8px;
    color: #193b2a;
    font-size: 23px;
    line-height: 1.35;
}

.rwv-receipt > p {
    font-size: 14px;
    line-height: 1.6;
}

.rwv-receipt h3 {
    margin: 18px 0 9px;
    font-size: 16px;
    line-height: 1.4;
}

.rwv-receipt-ref {
    display: inline-block;
    margin: 8px 0;
    padding: 8px 11px;
    border-radius: 5px;
    background: #fff4e9;
    color: #7c3a00;
    font-size: 13px;
}

.rwv-receipt-table {
    width: 100%;
    margin: 12px 0 16px;
    border-collapse: collapse;
    font-size: 13px;
}

.rwv-receipt-table th,
.rwv-receipt-table td {
    padding: 10px 11px;
    border: 1px solid #e6e0da;
    text-align: left;
    vertical-align: top;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.rwv-receipt-table th {
    width: 35%;
    background: #f8f5f1;
    font-weight: 700;
}

.rwv-receipt-warning {
    padding: 12px 14px;
    border-left: 4px solid #df7625;
    border-radius: 3px;
    background: #fff5eb;
    line-height: 1.5;
}

.rwv-receipt-support a {
    color: #a84c00;
    font-weight: 700;
    text-decoration: none;
}

/* TABLET */

@media (max-width: 760px) {
    .rwv-booking-shell {
        grid-template-columns: minmax(0, 1fr);
        margin: 8px auto;
    }

    .rwv-calendar-panel {
        border-right: 2px solid #b8c2bc;
        border-bottom: 1px solid #dedede;
        padding: 14px;
    }

    .rwv-form-panel {
        padding: 16px;
    }

    .rwv-day {
        height: 38px;
        min-height: 38px;
    }
}

/* SMALL MOBILE */

@media (max-width: 420px) {
    .rwv-booking-shell {
        border-radius: 8px;
    }

    .rwv-calendar-panel {
        padding: 10px;
    }

    .rwv-form-panel {
        padding: 12px;
    }

    .rwv-fields {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 8px;
    }

    .rwv-fields .rwv-full-field {
        grid-column: 1;
    }

    .rwv-day {
        height: 35px;
        min-height: 35px;
        font-size: 12px;
    }

    .rwv-receipt {
        padding: 16px 12px;
    }

    .rwv-receipt h2 {
        font-size: 20px;
    }

    .rwv-receipt-table th,
    .rwv-receipt-table td {
        padding: 8px 7px;
        font-size: 12px;
    }

    .rwv-receipt-table th {
        width: 39%;
    }
}

/* =========================================
   RWV CALENDAR - PREMIUM COLOUR THEME
========================================= */

.rwv-booking-shell .rwv-calendar-panel {
    background: #fffaf5 !important;
    border-color: #d8c4b2 !important;
}

/* Month heading */
.rwv-booking-shell .rwv-month-label {
    color: #193b2a !important;
    font-weight: 700 !important;
}

/* Previous month button */
.rwv-booking-shell .rwv-month-prev {
    background: #193b2a !important;
    color: #ffffff !important;
    border-color: #193b2a !important;
}

/* Next month button */
.rwv-booking-shell .rwv-month-next {
    background: #df7625 !important;
    color: #ffffff !important;
    border-color: #df7625 !important;
}

/* Calendar outer border */
.rwv-booking-shell .rwv-calendar-grid {
    border-color: #d9c5b4 !important;
    background: #fffaf5 !important;
}

/* Weekday headings */
.rwv-booking-shell .rwv-weekday {
    background: #193b2a !important;
    color: #ffffff !important;
    border-color: #456352 !important;
}

/* Date cells */
.rwv-booking-shell .rwv-day {
    background: #fffaf5 !important;
    color: #29352e !important;
    border-right-color: #e1d5ca !important;
    border-bottom-color: #e1d5ca !important;
}

/* Hover effect */
.rwv-booking-shell .rwv-day:hover:not(:disabled) {
    background: #ffe5ce !important;
    color: #8b4000 !important;
}

/* Selected date */
.rwv-booking-shell .rwv-day.is-selected {
    background: #df7625 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Disabled dates */
.rwv-booking-shell .rwv-day:disabled {
    background: #f0ede9 !important;
    color: #b8b1aa !important;
}

/* Dates outside the current month */
.rwv-booking-shell .rwv-day.is-outside {
    background: #f5f0e9 !important;
    color: #b5aaa0 !important;
}

/* Calendar helper text */
.rwv-booking-shell .rwv-calendar-help {
    color: #53675a !important;
}
