/* ===== BOOKING FORM PAGE STYLES ===== */

/* CSS Variables */


/* Base Styles */
.booking-section {
    padding: 100px 0 50px;
    background: var(--light);
    min-height: 100vh;
}

/* Booking Header */
.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.booking-title h1 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: var(--dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.booking-title h1 i {
    color: var(--primary);
}

.subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
}

/* Booking Wrapper */
.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

/* Form Container */
.booking-form-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-card {
    padding: 30px;
}

.form-card h2 {
    margin: 0 0 25px 0;
    font-size: 1.4rem;
    color: var(--dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-card h2 i {
    color: var(--primary);
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group label i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #1f2937;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

/* Section Headers */
.section-header {
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.section-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: var(--primary);
}

/* Duration Options */
.duration-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.duration-option {
    position: relative;
}

.duration-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.duration-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background: white;
    text-align: center;
}

.duration-option:hover label {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.duration-option input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: var(--primary-light);
}

.duration-time {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.duration-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Session Options */
.session-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.session-option {
    position: relative;
}

.session-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.session-option label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.session-option:hover label {
    border-color: var(--primary);
    transform: translateX(5px);
}

.session-option input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: var(--primary-light);
}

.session-option label i {
    font-size: 1.5rem;
    color: var(--primary);
}

.session-option label h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--dark);
}

.session-option label p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.session-option label .rate {
    margin-top: 5px;
    font-weight: 700;
    color: var(--primary);
}

/* Location Fields */
.location-fields {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    border: 1px solid #e5e7eb;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Terms Group */
/* Terms and Conditions Styling */
.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.terms-group:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.terms-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
    appearance: none;
    position: relative;
    transition: all 0.3s ease;
}

.terms-group input[type="checkbox"]:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.terms-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.terms-group input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    border-color: #4f46e5;
}

.terms-group label {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.5;
    margin: 0;
    cursor: pointer;
    flex: 1;
}

.terms-group a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.terms-group a:hover {
    text-decoration: underline;
}

.terms-group a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #4f46e5;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.terms-group a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Required field indicator */
.terms-group label::after {
    content: " *";
    color: #ef4444;
    font-weight: bold;
}

/* Error state for unchecked checkbox */
.terms-group input[type="checkbox"]:invalid {
    border-color: #ef4444;
}

.terms-group input[type="checkbox"]:invalid + label {
    color: #ef4444;
}

/* Responsive design for terms */
@media (max-width: 768px) {
    .terms-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }
    
    .terms-group input[type="checkbox"] {
        margin-top: 0;
    }
    
    .terms-group label {
        font-size: 0.9rem;
    }
}
/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Order Summary */
.order-summary-container {
    position: sticky;
    top: 100px;
}

.summary-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
}

.summary-card h2 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    color: var(--dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-card h2 i {
    color: var(--primary);
}

/* Tutor Summary */
.tutor-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.tutor-avatar {
    position: relative;
    flex-shrink: 0;
}

.tutor-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

.tutor-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--dark);
}

.specialty {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating i {
    color: #f59e0b;
    font-size: 0.9rem;
}

.rating span {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Session Summary */
.session-summary {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    color: #6b7280;
    font-size: 0.9rem;
}

.summary-item .value {
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}

/* Price Summary */
.price-summary {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.price-item .label {
    color: #6b7280;
    font-size: 0.9rem;
}

.price-item .value {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.price-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 15px 0;
}

.price-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
}

.price-total .label {
    color: var(--dark);
}

.price-total .value {
    color: var(--primary);
}

/* Important Notes */
.important-notes {
    background: #f0f9ff;
    padding: 15px;
    border-radius: var(--radius);
    margin: 20px 0;
    border-left: 4px solid var(--primary);
}

.important-notes h4 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.important-notes h4 i {
    color: var(--primary);
}

.important-notes ul {
    margin: 0;
    padding-left: 20px;
}

.important-notes li {
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Support Info */
.support-info {
    margin-top: 20px;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light);
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.support-item i {
    font-size: 1.2rem;
    color: var(--primary);
}

.support-item h5 {
    margin: 0 0 3px 0;
    font-size: 0.9rem;
    color: var(--dark);
}

.support-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.support-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.support-item a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .booking-wrapper {
        grid-template-columns: 1fr;
    }
    
    .order-summary-container {
        position: static;
    }
    
    .duration-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .booking-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-card {
        padding: 20px;
    }
    
    .session-options {
        flex-direction: column;
    }
    
    .booking-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .booking-section {
        padding: 80px 0 30px;
    }
    
    .booking-title h1 {
        font-size: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}



/* Loading State */
.btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Date picker custom styling */
input[type="date"] {
    position: relative;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* Form validation styles */
.form-group input:invalid,
.form-group select:invalid {
    border-color: #ef4444;
}

.form-group input:valid,
.form-group select:valid {
    border-color: #10b981;
}

/* Required field indicator */
.form-group label[required]::after {
    content: " *";
    color: #ef4444;
}

/* Loading state */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .session-options {
        flex-direction: column;
    }
    
    .session-option {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-row .form-group {
        width: 100%;
    }
}

/* Print styles for booking form */
@media print {
    .header,
    .footer,
    .breadcrumb-container,
    .booking-actions,
    .form-actions {
        display: none !important;
    }
    
    .booking-section {
        padding: 20px 0;
    }
    
    .booking-wrapper {
        display: block;
    }
    
    .order-summary-container {
        display: none;
    }
    
    .form-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
/* Dropdown Styles */
.form-dropdown {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #1f2937;
    transition: var(--transition);
    background: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

.form-dropdown:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-dropdown:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.form-dropdown option {
    padding: 10px;
}

/* Real-time update animation */
.summary-update {
    animation: highlightUpdate 0.5s ease;
}

@keyframes highlightUpdate {
    0% { background-color: rgba(79, 70, 229, 0.1); }
    100% { background-color: transparent; }
}

/* Form Row Improvements */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

/* Date picker wrapper improvements */
.date-picker-wrapper input[type="date"] {
    flex-grow: 1;
}

/* Dropdown improvements */
.form-dropdown {
    flex-grow: 1;
    min-height: 44px;
}

/* Labels in form rows */
.form-row .form-group label {
    margin-bottom: 8px;
    white-space: nowrap;
}

/* Tooltip positioning in rows */
.form-row .tooltip-wrapper {
    display: inline-block;
    vertical-align: middle;
}

/* Responsive design for form rows */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-row .form-group {
        width: 100%;
    }
    
    .form-row .form-group label {
        white-space: normal;
    }
}

/* Available dates info in date picker */
.available-dates-info {
    margin-top: 8px;
    font-size: 0.85rem;
    min-height: 20px;
}

/* Session details summary styling */
.session-details-summary {
    background: #f8fafc;
    border-radius: var(--radius);
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #4f46e5;
}

.session-details-summary h4 {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-details-summary .details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.session-details-summary .detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.session-details-summary .detail-item:last-child {
    border-bottom: none;
}

.session-details-summary .detail-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.session-details-summary .detail-value {
    color: #1f2937;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}