/* ==========================================
   🚕 PATTAYA TAXI - BOOKING PAGE STYLES
   ========================================== */

/* Remove spinner from number input */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

/* SweetAlert2 Confirmation Popup Styles */
.booking-confirmation-details {
    text-align: left;
    max-height: none;
    overflow-y: visible;
    padding: 0;
    margin: 0;
}

.confirmation-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.confirmation-left {
    flex: 1;
    min-width: 0;
}

.confirmation-right {
    flex: 1;
    min-width: 0;
}

.confirmation-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.confirmation-section h4 {
    color: var(--primary-gold);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.confirmation-grid {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.confirmation-grid .confirmation-item {
    flex: 1;
    min-width: 0;
}

.confirmation-item {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.confirmation-item strong {
    color: var(--primary-gold);
    font-weight: 600;
}

.confirmation-services {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.confirmation-service-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.confirmation-service-item i {
    color: var(--primary-gold);
}

.confirmation-special-requests {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.confirmation-special-requests p {
    margin: 0;
    color: var(--gray-900);
}



/* Additional styles for booking page */
.checkbox-item:hover {
    border-color: var(--primary-gold) !important;
    background: rgba(255, 125, 44, 0.05);
}

.checkbox-item input[type="checkbox"]:checked + label {
    color: var(--primary-gold);
}

.checkbox-item:has(input[type="checkbox"]:checked) {
    border-color: var(--primary-gold) !important;
    background: rgba(255, 125, 44, 0.1);
}

.vehicle-option:hover {
    border-color: var(--primary-gold) !important;
    background: rgba(255, 125, 44, 0.1);
    /* ลบ transform: translateY(-5px) เพื่อป้องกันการเลื่อนขึ้น */
}

.vehicle-option.active {
    border-color: var(--primary-gold) !important;
    background: rgba(255, 125, 44, 0.1);
}

.vehicle-option.active i {
    color: var(--primary-gold) !important;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.price-display.show {
    display: block !important;
    animation: fadeIn 0.5s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-gold) !important;
    box-shadow: 0 0 0 3px rgba(255, 125, 44, 0.2) !important;
}

/* Booking Form Specific Styles */
.booking-form-card {
    padding: 3rem;
}

/* Force hero title/subtitle to white on booking page */
#page-booking .hero-booking .hero-content h1,
#page-booking .hero-booking .hero-content p,
#page-booking [data-translate="booking.title"],
#page-booking [data-translate="booking.subtitle"] {
    color: #ffffff !important;
}

.booking-form-title {
    color: var(--gray-900);
    margin-bottom: 2rem;
    text-align: center;
}

.booking-form-grid {
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.booking-form-group {
    margin-bottom: 2rem;
}

.additional-services-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.checkbox-label-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label {
    cursor: pointer;
    margin: 0;
}

.checkbox-icon {
    margin-right: 0.5rem;
    color: var(--primary-gold);
}

.service-price {
    color: var(--primary-gold);
    font-weight: 600;
}

.submit-button-container {
    text-align: center;
    margin-top: 3rem;
}

.submit-button {
    font-size: 1.2rem;
    padding: 1rem 3rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
}

.submit-button:hover {
    box-shadow: var(--shadow-xl);
    background: var(--primary-gold-dark);
    /* ลบ transform: translateY(-3px) เพื่อป้องกันการเลื่อนขึ้น */
}

/* Features Section */
.features-section {
    background: rgba(255, 255, 255, 0.05);
}

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

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-dark) 50%, var(--primary-gold) 100%);
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(255, 125, 44, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    aspect-ratio: 1;
    flex-shrink: 0;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-icon:hover::before {
    transform: translateX(100%);
}

.feature-icon:hover::after {
    opacity: 1;
}

.feature-icon:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 15px 35px rgba(255, 125, 44, 0.5), 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    /* ลบ translateY(-8px) เพื่อป้องกันการเลื่อนขึ้น */
}

.feature-icon i {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Ensure perfect circle */
.feature-icon,
.feature-icon::before,
.feature-icon::after {
    border-radius: 50% !important;
    box-sizing: border-box;
}

/* Override any conflicting styles */
.feature-icon {
    border-radius: 50% !important;
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    min-height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    transform-origin: center;
    will-change: transform;
}

/* Prevent any distortion */
.feature-icon * {
    border-radius: 50% !important;
}

/* Force aspect ratio */
.feature-icon {
    aspect-ratio: 1 / 1 !important;
}

.feature-title {
    color: var(--white);
    margin-bottom: 1rem;
}

.feature-description {
    color: rgba(255, 255, 255, 0.8);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-question {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question-title {
    color: var(--white);
    margin: 0;
}

.faq-question-icon {
    color: var(--primary-gold);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    display: none;
    animation: fadeIn 0.3s ease;
}

.faq-answer.show {
    display: block;
}

.faq-question.active .faq-question-icon {
    transform: rotate(180deg);
}

/* Hero Section */
.hero-booking {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--secondary-blue-dark) 100%);
}

/* Booking Form Section */
.booking-form-section {
    margin-top: -5rem;
    position: relative;
    z-index: 10;
}

.booking-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes featureIconPulse {
    0% {
    box-shadow: 0 8px 25px rgba(255, 125, 44, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2);
        transform: scale(1);
    }
    50% {
    box-shadow: 0 12px 30px rgba(255, 125, 44, 0.6), 0 6px 20px rgba(0, 0, 0, 0.3);
        transform: scale(1.02);
    }
    100% {
    box-shadow: 0 8px 25px rgba(255, 125, 44, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2);
        transform: scale(1);
    }
}

@keyframes featureIconGlow {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.1);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.3);
    }
}

.feature-icon {
    animation: featureIconPulse 4s ease-in-out infinite, featureIconGlow 3s ease-in-out infinite;
}

.feature-icon:hover {
    animation: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-form-card {
        padding: 2rem;
    }
    
    .booking-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem; /* ลด gap จาก 1.5rem เป็น 1rem */
    }
    
    .booking-form-group {
        margin-bottom: 1rem; /* ลด margin จาก 2rem เป็น 1rem */
    }
    
    .form-group {
        margin-bottom: 1rem; /* ลด margin จาก 1.5rem เป็น 1rem */
    }
    
    .submit-button {
        font-size: 1rem;
        padding: 0.75rem 2rem;
    }
    
    .feature-icon {
        width: 75px !important;
        height: 75px !important;
        min-width: 75px !important;
        min-height: 75px !important;
        max-width: 75px !important;
        max-height: 75px !important;
        font-size: 2.1rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon:hover {
        transform: scale(1.05) rotate(3deg);
        /* ลบ translateY(-5px) เพื่อป้องกันการเลื่อนขึ้น */
    }
}

@media (max-width: 480px) {
    .booking-form-card {
        padding: 1.5rem;
    }
    
    .booking-form-grid {
        gap: 0.75rem; /* ลด gap อีกในหน้าจอเล็ก */
    }
    
    .booking-form-group {
        margin-bottom: 0.75rem; /* ลด margin อีกในหน้าจอเล็ก */
    }
    
    .form-group {
        margin-bottom: 0.75rem; /* ลด margin อีกในหน้าจอเล็ก */
    }
    
    .submit-button {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-answer {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 65px !important;
        height: 65px !important;
        min-width: 65px !important;
        min-height: 65px !important;
        max-width: 65px !important;
        max-height: 65px !important;
        font-size: 1.9rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-icon:hover {
        transform: scale(1.03) rotate(2deg);
        /* ลบ translateY(-3px) เพื่อป้องกันการเลื่อนขึ้น */
    }
}

/* Extra Small Mobile Styles (iPhone size) */
@media (max-width: 390px) {
    .booking-form-card {
        padding: 1rem;
    }
    
    .booking-form-grid {
        gap: 0.5rem;
    }
    
    .booking-form-group {
        margin-bottom: 0.5rem;
    }
    
    .form-group {
        margin-bottom: 0.5rem;
    }
    
    /* เพิ่มขนาด input fields สำหรับ iPhone */
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px; /* ป้องกัน zoom ใน iOS */
        padding: 12px 16px; /* เพิ่ม padding */
        min-height: 48px; /* เพิ่มความสูงขั้นต่ำ */
        border-radius: 8px;
    }
    
    /* เพิ่มขนาด label */
    .form-label {
        font-size: 16px;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    /* เพิ่มขนาด checkbox */
    .checkbox-input {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
    
    .checkbox-label {
        font-size: 16px;
    }
    
    /* เพิ่มขนาด submit button */
    .submit-button {
        font-size: 18px;
        padding: 16px 24px;
        min-height: 56px;
        border-radius: 12px;
    }
    
    /* ปรับขนาด title */
    .booking-form-title {
        font-size: 20px;
        margin-bottom: 1.5rem;
    }
    
    /* ปรับขนาด service price */
    .service-price {
        font-size: 16px;
        font-weight: 700;
    }
    
    /* ปรับขนาด checkbox item */
    .checkbox-item {
        padding: 12px 16px;
        border-radius: 8px;
    }
    
    .checkbox-label-container {
        gap: 12px;
    }
    
    .checkbox-icon {
        font-size: 18px;
    }
}

/* iPhone SE and Very Small Screens */
@media (max-width: 375px) {
    .booking-form-card {
        padding: 0.75rem;
    }
    
    .booking-form-grid {
        gap: 0.5rem;
    }
    
    .booking-form-group {
        margin-bottom: 0.5rem;
    }
    
    .form-group {
        margin-bottom: 0.5rem;
    }
    
    /* ปรับขนาด input fields สำหรับ iPhone SE */
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
        padding: 14px 16px;
        min-height: 52px;
        border-radius: 10px;
    }
    
    /* ปรับขนาด label */
    .form-label {
        font-size: 16px;
        margin-bottom: 10px;
        font-weight: 600;
    }
    
    /* ปรับขนาด checkbox */
    .checkbox-input {
        width: 22px;
        height: 22px;
        margin-right: 10px;
    }
    
    .checkbox-label {
        font-size: 16px;
    }
    
    /* ปรับขนาด submit button */
    .submit-button {
        font-size: 18px;
        padding: 18px 28px;
        min-height: 60px;
        border-radius: 14px;
    }
    
    /* ปรับขนาด title */
    .booking-form-title {
        font-size: 22px;
        margin-bottom: 1.5rem;
    }
    
    /* ปรับขนาด service price */
    .service-price {
        font-size: 16px;
        font-weight: 700;
    }
    
    /* ปรับขนาด checkbox item */
    .checkbox-item {
        padding: 14px 18px;
        border-radius: 10px;
    }
    
    .checkbox-label-container {
        gap: 14px;
    }
    
    .checkbox-icon {
        font-size: 20px;
    }
}

/* Very Small Screens (320px and below) */
@media (max-width: 320px) {
    .booking-form-card {
        padding: 0.5rem;
    }
    
    .booking-form-grid {
        gap: 0.5rem;
    }
    
    .booking-form-group {
        margin-bottom: 0.5rem;
    }
    
    .form-group {
        margin-bottom: 0.5rem;
    }
    
    /* ปรับขนาด input fields สำหรับหน้าจอเล็กมาก */
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
        padding: 16px 18px;
        min-height: 56px;
        border-radius: 12px;
    }
    
    /* ปรับขนาด label */
    .form-label {
        font-size: 16px;
        margin-bottom: 12px;
        font-weight: 600;
    }
    
    /* ปรับขนาด checkbox */
    .checkbox-input {
        width: 24px;
        height: 24px;
        margin-right: 12px;
    }
    
    .checkbox-label {
        font-size: 16px;
    }
    
    /* ปรับขนาด submit button */
    .submit-button {
        font-size: 18px;
        padding: 20px 32px;
        min-height: 64px;
        border-radius: 16px;
    }
    
    /* ปรับขนาด title */
    .booking-form-title {
        font-size: 24px;
        margin-bottom: 1.5rem;
    }
    
    /* ปรับขนาด service price */
    .service-price {
        font-size: 16px;
        font-weight: 700;
    }
    
    /* ปรับขนาด checkbox item */
    .checkbox-item {
        padding: 16px 20px;
        border-radius: 12px;
    }
    
    .checkbox-label-container {
        gap: 16px;
    }
    
    .checkbox-icon {
        font-size: 22px;
    }
}