/* ==========================================
   Booking Form Component Styles
   ========================================== */

.booking-form {
    position: relative;
    padding: var(--space-16) 0;
    background: var(--bg-secondary);
}

.booking-form-container {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.booking-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--primary-color);
}

.booking-form-intro {
    text-align: center;
    margin-bottom: var(--space-8);
}

.booking-form-intro h2 {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--text-heading);
    margin-bottom: var(--space-4);
}

.booking-form-intro p {
    font-size: var(--fs-base);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-label .required {
    color: var(--secondary-color);
    margin-left: var(--space-1);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    font-family: var(--font-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(68, 115, 76, 0.1);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-10);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Star Rating Picker - Individual Stars */
.star-rating {
    display: flex;
    flex-direction: row;
    gap: var(--space-2);
    align-items: center;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-item {
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: var(--fs-2xl);
}

.star-item i {
    color: var(--gray-300);
    transition: color var(--transition-fast);
}

/* Hover state */
.star-item.hover i {
    color: var(--accent-gold);
    transform: scale(1.2);
}

/* Active/Selected state */
.star-item.active i {
    color: var(--accent-gold);
}

/* Phone Input with Country Code */
.phone-input-wrapper {
    display: flex;
    gap: var(--space-2);
}

.country-code {
    width: 120px;
    flex-shrink: 0;
}

.phone-number {
    flex: 1;
}

/* Submit Button */
.form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-4) var(--space-6);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: var(--space-4);
}

.form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(68, 115, 76, 0.3);
}

.form-submit i {
    font-size: var(--fs-xl);
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-form-wrapper {
        padding: var(--space-6);
    }

    .booking-form-intro h2 {
        font-size: var(--fs-xl);
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .phone-input-wrapper {
        flex-direction: column;
    }

    .country-code {
        width: 100%;
    }
}

/* Form Validation Styles */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--secondary-color);
    background: rgba(210, 110, 75, 0.05);
}

.form-error {
    color: var(--secondary-color);
    font-size: var(--fs-xs);
    margin-top: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.form-error::before {
    content: '⚠';
    font-size: var(--fs-sm);
}

/* Success Message Popup */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    text-align: center;
    z-index: var(--z-modal);
    opacity: 0;
    transition: all var(--transition-normal);
    max-width: 400px;
    border: 3px solid var(--primary-color);
}

.success-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.success-message i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: var(--space-4);
}

.success-message p:first-of-type {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--text-heading);
    margin-bottom: var(--space-2);
}

.success-message p:last-of-type {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
}