/* Booking Form CSS Styles */
.book-my-stay{
    background: var(--neutral-ultra-light);
}
/* Global styles */
.booking-redefined-form-container {
    color: #333;
    line-height: 1.5;
}

/* Modal styles */
.lead-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}



.lead-modal {
    background-color: #fff;
    padding: 24px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 100%;
}

.lead-modal-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.lead-modal-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 16px;
}

.lead-modal-button {
    width: 100%;
    text-align: center;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.lead-modal-button:hover {
    background-color: var(--primary-dark);
}

/* Page header */
.booking-header {
    padding: 24px;
    display: grid;
    gap: var(--content-gap);
    /*background-color: #333;*/
    /*color: white;*/
}

.booking-title {

}

.booking-dates {
    /*color: #ccc;*/
    font-size: var(--h5);
}

/* Main layout */
.booking-container {
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.booking-form-col {
    flex: 1;
    padding: 24px;
    min-height: 100%;
}

.booking-sidebar-col {
    /*background-color: #f5f5f5;*/
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}

.booking-sidebar-wrapper {
    flex: 1;
    position: sticky;
    top: 24px;
    height: fit-content;
    align-self: start; /* Helps with sticky positioning */
}

.booking-property-card{
    background: var(--white);
    display: flex;

    margin-bottom: var(--space-s);
}

/* Property details */
.booking-property-card__details{
    display: grid;
    row-gap: var(--space-s);
    padding: var(--space-s) ;
}

.booking-unit-card__unit-name{
    font-size: var(--text-xl);
    font-weight: 600;
}

.booking-unit-card__unit-description{
    gap: 0;
}

.property-overview{
    font-weight: 700;
    line-height: 170%;
    text-transform: uppercase;
    margin: 0;
}


.booking-featured-amenity:not(:last-child)::after {
    content: ',';
    margin: 0 8px 0 0 ;
}


.property-image {
    /*width: 33.333%;*/
    /*background-color: #eee;*/
    /*height: 160px;*/
    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: center;*/
    /*overflow: hidden;*/
    /*border-radius: 4px;*/
}

.property-image {
    /*width: 300px*/
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-info {
    width: 66.666%;
    padding-left: 16px;
}

.property-name {
    font-weight: bold;
    text-transform: uppercase;
}

.property-specs {
    font-size: 14px;
    margin: 4px 0;
}


/* Carefree cancellation */
.carefree-section {
    margin: var(--space-s) 0;
    margin-bottom: 24px;
    padding: 16px;
    border-top: 1px solid var(--neutral-ultra-light);
    border-bottom: 1px solid  var(--neutral-ultra-light);
}

.carefree-checkbox {
    margin-right: 8px;
}

.carefree-description {

}

.carefree-updating{
    margin-left: var(--space-s);
    font-style: italic;
    color: var(--black);
}


.carefree-details-btn {
    /*color: #2563eb;*/

    text-decoration: underline;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.carefree-details {
    margin-top: 8px;
    padding: 12px;
}

/* Section headings */
.section-heading {
    font-size: var(--h3);
    text-transform: uppercase;
    line-height: 140%;
    font-weight: 600;
    text-align: left;
}
/* Common styles for all form fields */
.form-field {
    position: relative;
    margin-bottom: 20px;
}

/* Text input styles */
.form-field input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    /*font-size: 16px;*/
    background-color: white;
    transition: border-color 0.2s ease;
}

/* Select field specific styles */
.form-field select {
    width: 100%;
    height: 51px; /* Match the height of text inputs */
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    /*font-size: 16px;*/
    background-color: white;
    transition: border-color 0.2s ease;
    appearance: none; /* Remove default styling */
}

/* Arrow for select fields */
.select-wrapper {
    position: relative;
}

/*.select-wrapper::after {*/
/*    content: "▼";*/
/*    font-size: 12px;*/
/*    position: absolute;*/
/*    right: 15px;*/
/*    top: 50%;*/
/*    !*transform: translateY(-50%);*!*/
/*    pointer-events: none;*/
/*    color: #666;*/
/*}*/

/* Label styles for all form fields */
.form-field label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    transition: all 0.2s ease;
    pointer-events: none;
    color: #666;
}

/* Active label state for inputs */
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.8em;
    background-color: white;
    padding: 0 5px;
    color: var(--primary);
}

/* Active label state for selects - requires JavaScript */
.form-field.has-value label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.8em;
    background-color: white;
    padding: 0 5px;
    color: var(--primary);
}

/* Active select state */
.form-field select:focus {
    border-color: var(--primary);
    outline: none;
}

/* For required fields */
.required-field::after {
    content: "*";
    color: red;
    margin-left: 2px;
}

/* Helper text below the field */
.helper-text {
    font-size: 0.8em;
    margin-top: 5px;
    color: #666;
}
/*!* Accordion/expandable sections *!*/
/*.expandable-section {*/
/*    border: 1px solid #ccc;*/
/*    border-radius: 4px;*/
/*    margin-bottom: 16px;*/
/*}*/

/*.expandable-header {*/
/*    padding: 12px;*/
/*    background-color: #f5f5f5;*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*    cursor: pointer;*/
/*}*/

/*.expandable-title {*/
/*    font-weight: 500;*/
/*}*/

/*.expandable-content {*/
/*    padding: 16px;*/
/*    max-height: 256px;*/
/*    overflow-y: auto;*/
/*}*/


expandable-section-container {
    margin-bottom: 20px;
}

.expandable-section-header {
    margin-bottom: 8px;
}

.expandable-section-title {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.expandable-content-box {
    position: relative;
    border: 1px solid #DBDBDB;
    border-radius: 6px;
    background-color: #fafafa;
    overflow: hidden;
    margin-bottom: 16px;
}

.expandable-content {
    padding: 16px;
    line-height: 1.6;
    color: var(--neutral-medium);
    font-size: 14px;
    transition: all 0.3s ease;
}

.expandable-content p {
    margin-bottom: 12px;
}

.expandable-content p:last-child {
    margin-bottom: 0;
}

.expandable-content.collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

/* Gradient fade effect for collapsed content */
.expandable-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    pointer-events: none;
}

.expand-toggle-button {
    width: 100%;
    padding: 12px 16px;
    background-color: #e8e8e8;
    border: 1px solid #DBDBDB;
    color: #666;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    display: block;
}

.expand-toggle-button:hover {
    background-color: #ddd;
    color: #333;
}

.expand-toggle-button:active {
    background-color: #ccc;
}

.expand-toggle-button:focus {
    outline: 2px solid var(--primary, #0066cc);
    outline-offset: -2px;
}

/* Integration with existing booking form styles */
.booking-redefined-form-container .expandable-section-container {
    margin-bottom: 16px;
}

.booking-redefined-form-container .expandable-content-box {
    background-color: var(--neutral-ultra-light);
}

.booking-redefined-form-container .expand-toggle-button {
    text-align: center;
    background-color: var(--neutral-light, #e8e8e8);
    color: var(#4444);
}

.booking-redefined-form-container .expand-toggle-button:hover {
    background-color: var(--neutral-medium, #ddd);
    color: var(--primary, #333);
}

/* Ensure proper spacing with agreement checkboxes */
.form-section .expandable-section-container + .agreement-checkbox {
    margin-top: 16px;
}

.agreement-checkbox {
    margin-bottom: 24px;
}

/* Collapsible Fee Breakdown Styles for PriceBreakdown.jsx */

/* View Fees Toggle Button */
.price-breakdown .view-fees-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 0;
    margin-top: 10px;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.price-breakdown .view-fees-toggle:hover {
    color: #333;
    background-color: #f9f9f9;
}

.price-breakdown .view-fees-toggle.expanded {
    color: #333;
    font-weight: 600;
}

/* Chevron Icon */
.price-breakdown .view-fees-toggle .chevron-icon {
    font-size: 10px;
    transition: transform 0.2s ease;
    margin-left: 4px;
}

.price-breakdown .view-fees-toggle.expanded .chevron-icon {
    transform: rotate(180deg);
}

/* Fee Breakdown Collapsible Styles */
.price-breakdown .fee-breakdown-section.fee-breakdown-collapsible {
    overflow: hidden;
    transition: all 0.3s ease;
}

.price-breakdown .fee-breakdown-section.fee-breakdown-expanded {
    animation: slideDown 0.3s ease;
}

/* Smooth expand/collapse animation */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: 10px;
    }
}

/* Adjust fee breakdown borders when collapsible */
.price-breakdown .fee-breakdown-section.fee-breakdown-collapsible {
    border-top: none; /* Remove top border since button provides visual separation */
}

/* Fee breakdown section styles */
.price-breakdown .fee-breakdown-section {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-bottom: 15px;
}

/* Ensure proper spacing between sections */
.price-breakdown .view-fees-toggle + .fee-breakdown-section + .price-total {
    margin-top: 15px;
}

/* Price items within fee breakdown */
.price-breakdown .fee-breakdown-section .price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.price-breakdown .fee-breakdown-section .price-item .price-label {
    color: #555;
}

.price-breakdown .fee-breakdown-section .price-item:last-child {
    margin-bottom: 0;
}

/* Breakdown line items styling */
.price-breakdown .breakdown-line-item {
    padding: 4px 0;
}

/* Pet fee specific styling */
.price-breakdown .pet-fee-line-item {
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    margin-top: 8px;
}

/* Carefree cancellation line item */
.price-breakdown .carefree-line-item {
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    margin-top: 8px;
    font-weight: 500;
    /*color: #0066cc;*/
}

/* Total section - always visible */
.price-breakdown .price-total {
    border-top: 2px solid #333;
    padding-top: 12px;
    margin-top: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 16px;
    flex-direction: column;
}

/* Payment Schedule section */
.price-breakdown .payment-schedule {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.price-breakdown .payment-schedule h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.price-breakdown .payment-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.price-breakdown .payment-item:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .price-breakdown .view-fees-toggle {
        padding: 10px 12px;
        font-size: 14px;
    }

    .price-breakdown .view-fees-toggle .chevron-icon {
        font-size: 12px;
    }

    .price-breakdown .fee-breakdown-section .price-item {
        font-size: 12px;
    }

    .price-breakdown .price-total {

        font-size: 15px;
    }
}


/* Fallback for browsers that don't support -webkit-line-clamp */
@supports not (-webkit-line-clamp: 1) {
    .expandable-content.collapsed {
        max-height: 168px; /* Approximate height for 6 lines with 1.6 line-height */
        overflow: hidden;
        display: block;
    }

    .expandable-content.collapsed[style*="webkit-line-clamp: 5"] {
        max-height: 140px; /* For 5 lines */
    }

    .expandable-content.collapsed[style*="webkit-line-clamp: 4"] {
        max-height: 112px; /* For 4 lines */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .expandable-content {
        padding: 14px;
        font-size: 13px;
    }

    .expand-toggle-button {
        padding: 10px 14px;
        font-size: 11px;
    }

    .expandable-section-title {
        font-size: 13px;
    }

    /* Adjust fallback heights for mobile */
    @supports not (-webkit-line-clamp: 1) {
        .expandable-content.collapsed {
            max-height: 156px; /* Adjusted for smaller font on mobile */
        }

        .expandable-content.collapsed[style*="webkit-line-clamp: 5"] {
            max-height: 130px;
        }

        .expandable-content.collapsed[style*="webkit-line-clamp: 4"] {
            max-height: 104px;
        }
    }
}

/* Dark mode support if you have it */
/*@media (prefers-color-scheme: dark) {*/
/*    .expandable-content-box {*/
/*        background-color: #2a2a2a;*/
/*        border-color: #555;*/
/*    }*/

/*    .expandable-content {*/
/*        color: #ccc;*/
/*    }*/

/*    .expand-toggle-button {*/
/*        background-color: #333;*/
/*        color: #ccc;*/
/*        border-color: #555;*/
/*    }*/

/*    .expand-toggle-button:hover {*/
/*        background-color: #444;*/
/*        color: #fff;*/
/*    }*/
/*    */
/*}*/









/* Agreement sections */
.agreement-checkbox {
    margin-left: 16px;
    margin-bottom: 16px;
}

.agreement-checkbox input {
    margin-top: 4px;
    margin-right: 8px;
}

/* Price breakdown */
.price-breakdown {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-bottom: 24px;
}

.breakdown-line-item{
    border-bottom: 1px solid #ffffff;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.price-label {
    color: #666;
}

.price-total {
    border-top: 1px solid var(--neutral-ultra-light);
    margin-top: 8px;
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

/* Additional CSS styles for the improved promo code interaction */

/* Base styles for the promo container */
.promo-container, .promo-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

/* Promo input container */
.promo-input-container {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* Promo input field */
.promo-input {
    flex: 1;
    height: 38px;
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out;
}

.promo-input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Error state for input */
.promo-input.error {
    border-color: #dc3545;
}

/* When promo is valid, show different styling */
.promo-input:disabled {
    background-color: #e9ecef;
    border-color: #28a745;
    color: #495057;
}

/* Promo buttons */
.promo-button {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    background-color: #0066cc;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.promo-button:hover:not(:disabled) {
    background-color: var(--tertiary-dark);
}

.promo-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

/* Reset button styling */
.promo-button.reset {
    background-color: #6c757d;
}

.promo-button.reset:hover {
    background-color: var(--neutral-semi-light);
}

/* Feedback message styling */
.promo-feedback {
    margin-top: 8px;
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 4px;
}

.promo-feedback.loading {
    color: var(--primary);
    background-color: var(--primary-light);
}

.promo-feedback.success {
    color: var(--acss-success-color);
    background-color:var(--success-light);
    border: 1px solid var(--success-light);;
}

.promo-feedback.error {
    color: var(--white);
    background-color: var(--danger);
    border: 1px solid var(--danger);
}

/* Animation for loading state */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.promo-feedback.loading {
    animation: pulse 1.5s infinite;
}

/* Updated booking sidebar layout */
.booking-sidebar-col {
    /*background-color: white;*/
    /*border-radius: 8px;*/
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
    /*padding: 20px;*/
}

/* Submit button styling */
.submit-button {
    width: 100%;
    padding: 12px 24px;
    /*font-size: 16px;*/
    font-weight: 600;
}

.submit-button:active:not(:disabled) {
    transform: translateY(1px);
}

.submit-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

.booking-details {
    background-color: #eff6ff;
    padding: 16px;
    border-radius: 4px;
    border: 1px solid #bfdbfe;
}

.booking-details-heading {
    font-weight: 500;
    color: #1e40af;
    margin-bottom: 8px;
}

.booking-date-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.booking-date-icon {
    height: 16px;
    width: 16px;
    margin-right: 8px;
    margin-top: 4px;
    color: #2563eb;
}

.booking-date-label {
    font-weight: 500;
}

/* Payment section */
.payment-accepted {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.payment-card-types {
    display: flex;
    gap: 4px;
}

.payment-card-type {
    padding: 4px 8px;
    font-size: 12px;
    background-color: #eee;
    border-radius: 4px;
}

.payment-secure-notice {
    margin-top: 16px;
    padding: 8px;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
}

.payment-secure-text {
    display: flex;
    align-items: center;
    color: #166534;
    font-size: 14px;
}

.payment-secure-text .icon {
    margin-right: 8px;
}

.promo-status{
    width: 100%;
    text-align: center;
    padding: var(--space-xs);
}

/* Submit button */
.submit-button {
    width: 100%;
    /*padding: 12px;*/
    /*background-color: #2563eb;*/
    /*color: white;*/
    /*font-weight: 500;*/
    /*font-size: 18px;*/
    /*border: none;*/
    /*border-radius: 4px;*/
    /*cursor: pointer;*/
    /*transition: background-color 0.2s;*/
    /*margin-top: 24px;*/
}

.submit-button:hover {
    background-color: var(--primary-dark);
}

/* Loading state */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 128px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Helpers */
.text-red {
    color: #ef4444;
}

.text-green {
    color: #10b981;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }
.ml-4 { margin-left: 16px; }

.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.mr-4 { margin-right: 16px; }

.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }

/* Media queries for responsive design */
@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid-full {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    h1{
        font-size: 28px;
        font-weight: 600;
        line-height: 140%;
        letter-spacing: 3px;
        text-align: center;
    }

    .booking-dates{
        font-size: 18px;
        line-height: 160%;
        letter-spacing: 6%;
    }

    .section-heading{
        font-weight: 600;
        font-size: 22px;
        line-height: 140%;
        letter-spacing: 5%;
        text-align: center;
    }

    .booking-container {
        flex-direction: column;
    }

    .property-overview {
        font-size: 14px;
        font-weight: 700;
        line-height: 160%;
        letter-spacing: 12%;
    }
    .property-details {
        flex-direction: column;
    }

    .booking-property-card{
        display: flex !important;
        gap: 0;
        flex-direction: column;
    }

    .booking-sidebar-wrapper {
        width: 100%;
        position: static;
    }

    .booking-sidebar-col {
        position: static !important;
        width: 100% !important;
    }

    .property-image,
    .property-info {
        width: 100%;
    }

    .property-image {
        height: 240px;
    }

    .property-info {
        padding-left: 0;
        margin-top: 16px;
    }

    .grid--2 {
        display: grid !important
    ;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        inline-size: 100%;
    }

    .grid--3 {
        display: grid !important
    ;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        inline-size: 100%;
    }

    .rental-agreements-section{
        max-width: 100%;
    }
}