/* Booking Page Styles */

/* Hero Banner */
/* Hero styles moved to hero.css */



/* Booking Options */
.booking-options {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.booking-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Booking Form */
.booking-form-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.booking-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(212, 175, 55, 0.02) 0%, 
        transparent 25%, 
        transparent 75%, 
        rgba(212, 175, 55, 0.02) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.booking-form-header {
    background: var(--primary-color);
    color: #fff;
    padding: 20px 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.booking-form-header::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.booking-form-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.booking-form {
    padding: 30px;
    position: relative;
    z-index: 2;
}

/* Form styles moved to css/shared/common.css */

/* Booking Button */
.booking-btn {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    background-color: var(--primary-color);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    color: white;
    min-height: 50px; /* Maintain good touch target */
}

.booking-btn:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.booking-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.booking-btn.loading {
    pointer-events: none;
}

.booking-btn.loading i {
    animation: spin 1s linear infinite;
}



.booking-btn i {
    margin-left: 8px;
}

/* Form status styles moved to css/shared/common.css */

/* Booking Services Grid */
.booking-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 10px;
}

.booking-service-item {
    width: 100%;
}

.service-box {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    min-height: 120px;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--navy-light));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.service-box:hover::before,
.service-box.active::before {
    opacity: 1;
}

.service-box:hover:not(.active) {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.service-box.active {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3) !important;
    border-color: var(--secondary-color) !important;
    background-color: var(--primary-color) !important;
}

.service-box.active::before {
    opacity: 1;
}

.service-box i,
.service-box span {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    pointer-events: none; /* Ensure clicks go to parent */
}

.service-box i {
    font-size: 34px;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.service-box:hover i,
.service-box.active i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.service-box span {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 18px;
}

.service-box:hover span,
.service-box.active span {
    color: white;
}

/* Add focus styles for accessibility */
.service-box:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5);
    border-color: var(--secondary-color);
}

/* Add ripple effect for click feedback */
.service-box:active {
    transform: translateY(-3px) scale(0.98);
}

/* Clicked animation state */
.service-box.clicked {
    transform: translateY(-8px) scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(11, 37, 69, 0.4), 
                0 0 0 3px rgba(212, 175, 55, 0.6) !important;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

/* Combined active and clicked state */
.service-box.active.clicked {
    transform: translateY(-12px) scale(1.08) !important;
    box-shadow: 0 20px 50px rgba(11, 37, 69, 0.5), 
                0 0 0 5px rgba(212, 175, 55, 0.8) !important;
}

/* Add subtle animation for service boxes */
@keyframes serviceBoxPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
    }
}

.service-box.active:not(.clicked) {
    animation: serviceBoxPulse 2s ease-in-out infinite;
}

/* Click hint styling */
.click-hint {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(212, 175, 55, 0.95);
    color: var(--dark-color);
    padding: 5px 14px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    white-space: nowrap;
    pointer-events: none; /* Ensure clicks go to parent */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.service-box:hover .click-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.service-box.active .click-hint {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    opacity: 1;
    font-size: 11px;
    padding: 3px 10px;
}

/* Hide original text and replace with selected message */
.service-box.active .click-hint {
    font-size: 0; /* Hide original text */
}

.service-box.active .click-hint::before {
    content: '✓ مُختار';
    color: var(--secondary-color);
    font-size: 11px;
    font-weight: 700;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .booking-options-grid {
        grid-template-columns: 1fr;
    }
    
    /* Hero responsive styles moved to hero.css */
}

@media (max-width: 767px) {
    .booking-options-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .booking-services {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .service-box {
        padding: 20px 15px;
        min-height: 110px;
        border-radius: 12px;
    }
    
    .service-box i {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .service-box span {
        font-size: 14px;
        margin-bottom: 14px;
        font-weight: 500;
    }
    
    .booking-form {
        padding: 0;
    }
    
    .booking-form-container {
        margin: 0 15px;
        border-radius: 16px;
        padding: 25px 20px;
    }
    
    .booking-form-header {
        margin: -25px -20px 25px -20px;
        padding: 20px 25px;
        border-radius: 16px 16px 0 0;
    }
    
    .booking-form-header h2 {
        font-size: 20px;
    }
    
    /* Better form styling on mobile */
    .form-group {
        margin-bottom: 25px;
    }
    
    .form-group label {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 10px;
        color: #333;
    }
    
    .form-group select,
    .form-group input,
    .form-group textarea {
        padding: 16px 18px;
        border: 2px solid #e1e5e9;
        border-radius: 12px;
        font-size: 16px;
        min-height: 52px;
        background-color: #fff;
        transition: all 0.3s ease;
    }
    
    .form-group select:focus,
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
        outline: none;
        transform: none;
    }
    
    .booking-btn {
        padding: 18px 20px;
        font-size: 16px;
        min-height: 56px;
        border-radius: 12px;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .booking-services {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-box {
        padding: 18px 15px;
        min-height: 100px;
    }
    
    .service-box i {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .service-box span {
        font-size: 13px;
        font-weight: 500;
    }
    
    .booking-form-container {
        margin: 0 10px;
        padding: 20px 15px;
    }
    
    .booking-form-header {
        margin: -20px -15px 20px -15px;
        padding: 18px 20px;
    }
    
    .booking-form-header h2 {
        font-size: 18px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group select,
    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        min-height: 50px;
    }
    
    .booking-btn {
        padding: 16px 18px;
        font-size: 15px;
        min-height: 52px;
    }
}

/* Booking Services Container */
.booking-services-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.booking-services-container h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.booking-services-container h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
} 