/* Professional How It Works Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
}

/* Header Section */
.how-it-works-header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), 
                url('../images/about/how_background.jpg') center/cover;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.how-it-works-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1));
}

.how-it-works-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.how-it-works-header p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.custom-breadcrumb {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0;
    list-style: none;
}

.custom-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-breadcrumb a:hover {
    color: white;
}

.custom-breadcrumb .active {
    color: white;
    font-weight: 500;
}

/* Main Container */
.main-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 4rem 1rem;
}

/* Sections */
.section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #374151;
}

/* Dropdown Styling */
.dropdown-btn {
    width: 100%;
    background: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dropdown-btn:hover {
    border-color: #3b82f6;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.dropdown-btn i {
    transition: transform 0.3s ease;
}

.dropdown-content {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.dropdown-content.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Cards */
.step-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 1.5rem;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.step-card h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.highlight {
    color: #dc2626;
    font-weight: 700;
}

/* Facility Cards */
.facility-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f1f5f9;
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.facility-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.facility-icon i {
    font-size: 2rem;
    color: white;
}

.facility-card h5 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.facility-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Facility Detail Cards */
.facility-detail-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    height: 100%;
}

.facility-detail-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.facility-detail-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.facility-detail-icon i {
    font-size: 1.5rem;
    color: white;
}

.facility-detail-content h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.facility-detail-content p {
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Planning Content */
.planning-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    height: 100%;
}

.planning-content h4 {
    color: #1e293b;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.planning-content p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Meeting Book Section */
.meeting-book {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    height: 100%;
}

.meeting-book h4 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.meeting-details h5 {
    color: #374151;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.meeting-details p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: #4b5563;
    font-weight: 500;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.meeting-details i {
    color: #3b82f6;
    width: 20px;
    text-align: center;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control.is-invalid {
    border-color: #dc2626;
}

.form-control.is-valid {
    border-color: #10b981;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    background: #3b82f6;
    color: white;
}

.btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    color: white;
    text-decoration: none;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn.w-100 {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    transform: none;
    box-shadow: none;
}

/* Guidebook Modal */
.guidebook-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.guidebook-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
}

.guidebook-container {
    position: relative;
    perspective: 1000px;
}

.close-book {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.close-book:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

/* Book Styling */
.book {
    position: relative;
    width: 800px;
    height: 600px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    padding: 20px;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.book::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    z-index: -1;
}

.book-spine {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: #d2dde4;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.page-spread {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: none;
    transform-style: preserve-3d;
}

.page-spread.active {
    display: block;
}

.page {
    position: absolute;
    width: calc(50% - 10px);
    height: 100%;
    /* background: white; */
    border-radius: 4px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); */
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.left-page {
    left: 0;
    transform-origin: right center;
}

.right-page {
    right: 0;
    transform-origin: left center;
}

.page-content {
    padding: 2rem;
    height: 100%;
    overflow-y: auto;
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
}

.page-content::-webkit-scrollbar {
    width: 4px;
}

.page-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.page-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

/* Cover Page */
.cover-page {
    background: #15285d;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.cover-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.cover-image {
    font-size: 4rem;
    margin: 2rem 0;
    color: #ffffff;
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-style: italic;
    opacity: 0.9;
}

.cover-footer {
    position: absolute;
    bottom: 2rem;
    font-size: 1rem;
    font-weight: 500;
}

/* Page Content Styling */
.page-content h2 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.page-content h3 {
    color: #374151;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.page-content p {
    margin-bottom: 1rem;
    text-align: justify;
    color: #4b5563;
}

.page-decoration {
    text-align: center;
    font-size: 2rem;
    color: #3b82f6;
    margin: 2rem 0;
    opacity: 0.5;
}

.highlight-box {
    background: #f0f9ff;
    border: 1px solid #3b82f6;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.faq-item ul {
    margin-left: 1.5rem;
}

.faq-item li {
    margin-bottom: 0.3rem;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.price-table th,
.price-table td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    text-align: center;
}

.price-table th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 600;
}

.price-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: #f8fafc;
}

.price-note {
    background: #f0f9ff;
    border: 1px solid #3b82f6;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
}

/* Book Navigation */
.book-navigation {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #e5e7eb;
}

.nav-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #1d4ed8;
    transform: scale(1.1);
}

.nav-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.page-indicator {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

/* Page Flip Animation */
.page-flip .left-page {
    transform: rotateY(-180deg);
}

.page-flip .right-page {
    transform: rotateY(180deg);
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #d1fae5;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Content Cards */
.requirement-card,
.insurance-card,
.kit-card,
.payment-card,
.legal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.requirement-card:hover,
.insurance-card:hover,
.kit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.requirement-card h4,
.insurance-card h4,
.kit-card h4 {
    color: #1e293b;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.requirement-card p,
.insurance-card p,
.kit-card p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.highlight-text {
    background: #f0f9ff;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    font-weight: 500;
    color: #1e293b;
}

/* Step Items */
.step-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.step-number {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.step-content h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-content p {
    color: #4b5563;
    line-height: 1.6;
}

.lessons-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.lead{
    font-size: 1rem;
}

.driving-lesson-details {
    text-align: center;
    margin-top: 2rem;
}

.driving-lesson-details h4 {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 1rem;
}

.driving-lesson-details p {
    color: #4b5563;
    line-height: 1.8;
}

/* Legal Requirements */
.legal-requirements {
    background: #fef3c7;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    border-left: 4px solid #f59e0b;
}

.legal-requirements h4,
.legal-requirements h5,
.legal-requirements h6 {
    color: #92400e;
    margin-bottom: 1rem;
}

.legal-requirements ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-requirements li {
    margin-bottom: 0.5rem;
    color: #92400e;
}

.requirements-grid {
    display: grid;
    gap: 1.5rem;
}

.requirement-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.authority-signature {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border-left: 4px solid #3b82f6;
}

.authority-signature p {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.authority-signature .disclaimer {
    font-size: 0.9rem;
    font-style: italic;
    color: #6b7280;
    margin-top: 1rem;
}

.link-reference {
    background: #f0f9ff;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.link-reference a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
}

.link-reference a:hover {
    text-decoration: underline;
}

/* Payment Card */
.payment-card {
    text-align: center;
    padding: 3rem;
}

.payment-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
}

.payment-card h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Social Impact */
.social-impact-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    text-align: center;
}

.social-impact-content p {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1.1rem;
}

.requirements-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.requirements-list p {
    background: #f0f9ff;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 1px solid #3b82f6;
    margin: 0;
    font-weight: 600;
    color: #1e293b;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .book {
        width: 90vw;
        max-width: 700px;
        height: 70vh;
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .how-it-works-header {
        padding: 80px 0 60px;
    }
    
    .how-it-works-header h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .main-container {
        padding: 2rem 1rem;
    }
    
    .book {
        width: 95vw;
        height: 60vh;
        max-height: 400px;
    }
    
    .page-content {
        padding: 1.5rem;
        font-size: 0.9rem;
    }
    
    .cover-page h1 {
        font-size: 2rem;
    }
    
    .cover-image {
        font-size: 3rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-bottom: 1rem;
    }
    
    .facility-detail-card {
        flex-direction: column;
        text-align: center;
    }
    
    .facility-detail-icon {
        margin-bottom: 1rem;
    }
    
    .requirements-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .requirements-list p {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 576px) {
    .how-it-works-header h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .book {
        width: 95vw;
        height: 50vh;
        max-height: 350px;
    }
    
    .page-content {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .cover-page h1 {
        font-size: 1.8rem;
    }
    
    .cover-image {
        font-size: 2.5rem;
    }
    
    .book-navigation {
        bottom: -60px;
        padding: 0.8rem 1.5rem;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .page-indicator {
        font-size: 0.8rem;
    }
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.facility-card,
.requirement-card,
.insurance-card,
.kit-card,
.step-item {
    animation: fadeIn 0.6s ease;
}

/* Focus states for accessibility */
.form-control:focus,
.btn:focus,
.nav-btn:focus,
.dropdown-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .guidebook-modal {
        display: none;
    }
    
    .how-it-works-header {
        background: none;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

