/**
 * Nice Booking Form Widget Stylesheet
 * Designed to match the "Book Your Adventure" luxury card UI.
 */

.nice-booking-widget-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background-color: #F3F4F6;
    border-radius: 28px;
    padding: 32px 28px;
    box-sizing: border-box;
    font-family: inherit;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.nice-booking-title {
    margin: 0 0 28px 0;
    font-size: 23px;
    font-weight: 600;
    color: #1E293B;
    text-align: center;
    line-height: 1.3;
}

/* Grid Layout for Fields */
.nice-booking-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.nice-booking-field-full {
    grid-column: span 2;
}

.nice-booking-field-group {
    display: flex;
    flex-direction: column;
}

.nice-booking-label {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

/* Control Wrappers & Inputs */
.nice-input-control-wrapper {
    position: relative;
    width: 100%;
}

.nice-booking-select,
.nice-booking-input {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    line-height: 1.4 !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 14px !important;
    padding: 0 42px 0 16px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #1E293B !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

select.nice-booking-select::-ms-expand {
    display: none !important;
}

[dir="rtl"] .nice-booking-select,
[dir="rtl"] .nice-booking-input {
    padding: 0 16px 0 42px !important;
}

.nice-booking-select:focus,
.nice-booking-input:focus {
    border-color: #0F3845;
    box-shadow: 0 0 0 3px rgba(15, 56, 69, 0.1);
}

/* Custom Icon Inside Inputs */
.nice-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #0F3845;
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="rtl"] .nice-input-icon {
    right: auto;
    left: 14px;
}

.nice-input-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

/* Date Input Specifics */
.nice-booking-input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Total Price Row */
.nice-booking-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0;
    padding: 4px 0;
}

.nice-booking-price-label {
    font-size: 16px;
    font-weight: 500;
    color: #0F3845;
}

.nice-booking-price-amount {
    font-size: 22px;
    font-weight: 700;
    color: #0F3845;
}

/* Book Now Button */
.nice-booking-submit-btn {
    width: 100%;
    height: 52px;
    background-color: #0F3845;
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(15, 56, 69, 0.2);
    text-decoration: none;
}

.nice-booking-submit-btn:hover {
    background-color: #174D5E;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 56, 69, 0.28);
}

.nice-booking-submit-btn.loading {
    opacity: 0.75;
    pointer-events: none;
}

.nice-booking-submit-btn .nice-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: niceSpin 0.8s linear infinite;
    display: none;
}

.nice-booking-submit-btn.loading .nice-btn-spinner {
    display: inline-block;
}

@keyframes niceSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .nice-booking-widget-wrapper {
        padding: 24px 20px;
        border-radius: 20px;
    }
    .nice-booking-fields-grid {
        grid-template-columns: 1fr;
    }
    .nice-booking-field-full {
        grid-column: span 1;
    }
}
