/* Property Booking Form Widget Styles */
.lgap-property-booking-form-widget {
    font-family: "Josefin Sans", Sans-serif;
}

.lgap-booking-form {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    /* border-radius: 4px; */
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

/* Form Fields */
.lgap-form-field {
    margin-bottom: 20px;
}

.lgap-form-field:last-child {
    margin-bottom: 0;
}

.lgap-form-label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: #000;
    font-family: "Josefin Sans", Sans-serif;
}

/* Date Field Styles */
.lgap-date-field {
    position: relative;
}

.lgap-date-input-wrapper {
    position: relative;
}

.lgap-form-input {
    width: 100%;
    height: 50px;
    padding: 12px 12px;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    font-family: "Josefin Sans", Sans-serif;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.lgap-form-input:focus {
    outline: none;
    border-color: #FFB800;
    box-shadow: 0 0 0 2px rgba(255, 184, 0, 0.1);
}

.lgap-booking-dates {
    color: transparent !important;
    caret-color: transparent;
    cursor: pointer;
}

.lgap-date-display {
    position: absolute;
    /* top: 50%; */
    /* left: 50%; */
    /* transform: translate(-50%, -50%); */
    pointer-events: none;
    font-family: "Josefin Sans", Sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    text-align: center;
    white-space: nowrap;
}

.lgap-detail-display {
    left: 4px;
    bottom: 8px;
    color: #000 !important;
}

/* Guests Field Styles */
.lgap-guests-row {
    display: flex;
    gap: 15px;
}

.lgap-guests-col {
    flex: 1;
}

.lgap-form-select {
    width: 100%;
    height: 45px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: "Josefin Sans", Sans-serif;
    font-size: 14px;
    background-color: #fff;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6" viewBox="0 0 12 6"><path fill="%23333" d="M0 0l6 6 6-6z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.lgap-form-select:focus {
    outline: none;
    border-color: #FFB800;
    box-shadow: 0 0 0 2px rgba(255, 184, 0, 0.1);
}

/* Availability Status */
.lgap-availability-status {
    padding: 12px 15px;
    /* border-radius: 4px; */
    font-size: 12px;
    font-weight: 400;
    text-align: center;
}

.lgap-availability-status.available {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.lgap-availability-status.unavailable {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

.lgap-availability-status.loading {
    background-color: #f5f5f5;
    color: #000;
    border: 1px solid #ddd;
}

/* Price Display */
.lgap-booking-price {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.lgap-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lgap-price-label {
    display: flex;
    flex-direction: column;
}

.lgap-price-text {
    font-weight: 600;
    font-size: 16px;
    color: #000;
}

.lgap-nights-count {
    font-size: 12px;
    color: #000;
    font-weight: normal;
}

.lgap-price-amount {
    font-family: "Playfair Display", Sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #000;
}

/* Booking Button */
.lgap-booking-button {
    width: 100%;
    height: 50px;
    background-color: #FFB800 !important;
    color: #000 !important;
    border: none;
    border-radius: 0px;
    font-family: "Josefin Sans", Sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lgap-booking-button:hover {
    background-color: #000 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lgap-booking-button:disabled {
    background-color: #ccc !important;
    color: #000 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lgap-booking-form-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact Options */
.lgap-contact-options {
    display: flex;
    justify-content: space-between;
    /* flex-direction: column; */
    border-top: 1px solid #eee;
    padding-top: 15px;
    gap: 10px;
}

.lgap-contact-option {
    flex: 1;
    text-align: center;
}

.lgap-contact-option a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Josefin Sans", Sans-serif;
    font-size: 11px;
    color: #666;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.lgap-contact-option a:hover {
    color: #FFB800;
}

.lgap-contact-option i {
    font-size: 18px;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.lgap-contact-option a:hover i {
    color: #FFB800;
}

/* Form Layout Variations */
.lgap-form-layout-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.lgap-form-layout-horizontal .lgap-form-field {
    margin-bottom: 0;
}

.lgap-form-layout-horizontal .lgap-date-field {
    flex: 2;
    min-width: 200px;
}

.lgap-form-layout-horizontal .lgap-guests-field {
    flex: 1;
    min-width: 150px;
}

.lgap-form-layout-horizontal .lgap-guests-row {
    gap: 10px;
}

.lgap-form-layout-horizontal .lgap-booking-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 120px;
    height: 50px;
}

.lgap-form-layout-horizontal .lgap-booking-price,
.lgap-form-layout-horizontal .lgap-contact-options,
.lgap-form-layout-horizontal .lgap-availability-status {
    flex: 1 1 100%;
}

/* Flatpickr Customization */
.flatpickr-calendar {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: none;
    font-family: "Josefin Sans", Sans-serif;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: #FFB800 !important;
    border-color: #FFB800 !important;
    color: #fff !important;
}

.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),
.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),
.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)) {
    box-shadow: -10px 0 0 #FFB800;
}

.flatpickr-day.inRange {
    background: rgba(255, 184, 0, 0.2) !important;
    border-color: rgba(255, 184, 0, 0.2) !important;
    color: #000 !important;
}

.flatpickr-day:hover {
    background: rgba(255, 184, 0, 0.1);
    border-color: rgba(255, 184, 0, 0.1);
}

.flatpickr-months .flatpickr-month {
    background: #FFB800;
    color: #fff;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .numInputWrapper {
    color: #fff;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    color: #fff !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lgap-booking-form {
        max-width: 100%;
        margin: 0;
    }
    
    .lgap-form-layout-horizontal {
        flex-direction: column;
    }
    
    .lgap-form-layout-horizontal .lgap-form-field {
        margin-bottom: 20px;
    }
    
    .lgap-form-layout-horizontal .lgap-booking-button {
        width: 100%;
        margin-bottom: 0;
    }
    
    .lgap-guests-row {
        gap: 10px;
    }
    
    .lgap-contact-options {
        gap: 5px;
    }
    
    .lgap-contact-option a {
        font-size: 10px;
    }
    
    .lgap-contact-option i {
        font-size: 16px;
        margin-bottom: 3px;
    }
}

@media (max-width: 480px) {
    .lgap-booking-form {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .lgap-date-display {
        font-size: 12px;
    }
    
    .lgap-price-amount {
        font-size: 24px;
    }
    
    .lgap-form-input,
    .lgap-booking-button {
        height: 45px;
    }
    
    .lgap-form-select {
        height: 40px;
    }
}

/* Elementor Editor Placeholder */
.lgap-booking-form-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
    font-family: "Josefin Sans", Sans-serif;
}

.lgap-booking-form-placeholder p {
    margin: 0;
    font-size: 14px;
}
