/*
Theme Name: ldsdrive Theme 
Theme URI: https://ldsdrive.com/
Author: Humayun Kabir
Author URI: https://wpdevusa.com
Description: A clone of the EzLicence search functionality, featuring a premium navy and yellow design.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ezlicence-clone
*/

:root {
    --color-primary: #002D5B;
    /* Navy Blue */
    --color-secondary: #FFC107;
    /* Vibrant Yellow */
    --color-text-dark: #1F2937;
    --color-text-light: #F3F4F6;
    --color-white: #FFFFFF;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --spacing-container: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: #f9fafb;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
}
#screen-meta-links .screen-meta-toggle {
    display: none !important;
}
/* Header */
.site-header {
    background: var(--color-white);
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 500;
    display: inline-block;
}
.nav-menu a:hover{
	color: #eb5757;
}
/* Button stylings for menu items. Add class 'nav-btn' to the menu item in WP Admin */
.nav-menu li.nav-btn a {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    transition: background 0.3s;
}

.nav-menu li.nav-btn a:hover {
    background-color: #004080;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    padding: 0;
    z-index: 101;
    /* Above mobile menu */
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Footer */
.site-footer {
    background: #111827;
    color: #9CA3AF;
    padding: 4rem 0 2rem;
    font-size: 0.9375rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #1F2937;
    padding-bottom: 3rem;
}

.footer-logo {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    text-decoration: none;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.footer-bio {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: #9CA3AF;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.footer-socials a:hover {
    color: var(--color-white);
}

.footer-heading {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-primary);
    /* Keeping primary color for hover or maybe white */
    color: var(--color-white);
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
    color: #6B7280;
}
/*Postal*/
.postcode-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--color-white);
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 50;
    overflow: hidden;
}

.postcode-suggestions[aria-hidden="true"] {
    display: none;
}

.postcode-suggestion-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 0.9rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-family: var(--font-body);
    color: var(--color-text-dark);
}

.postcode-suggestion-item:hover,
.postcode-suggestion-item:focus {
    outline: none;
    background: #F3F4F6;
}

.postcode-suggestion-item + .postcode-suggestion-item {
    border-top: 1px solid #F3F4F6;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bio {
        margin: 0 auto 1.5rem;
    }

    .footer-socials {
        justify-content: center;
    }
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-white);
        z-index: 100;
        padding-top: 80px;
        /* Space for header */
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .site-nav.is-open {
        transform: translateX(0);
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-menu li {
        margin-left: 0;
    }

    .nav-menu a {
        font-size: 1.25rem;
    }

    /* Animate hamburger to X */
    .mobile-menu-toggle.is-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Lock body scroll when menu open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    /* Ensure height */
    display: flex;
    align-items: center;
}

/* Add a subtle pattern or gradient to make it look premium */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-content {
    max-width: 100%;
    z-index: 1;
    /* Above background */
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-rating .rating-badge {
    font-size: 0.9375rem;
    font-weight: 600;
}

.hero-rating .rating-stars {
    color: #FBBF24;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.hero-rating .rating-count {
    font-size: 0.9375rem;
    opacity: 0.9;
}



/* Search Card - horizontal layout like EzLicence */
.search-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    color: var(--color-text-dark);
    max-width: 100%;
    width: 100%;
}

.search-form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 140px;
}

.input-group-btn {
    flex: 0 0 auto;
    min-width: auto;
}

.input-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4B5563;
}

.input-label-invisible {
    visibility: hidden;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .search-input,
.input-with-icon .search-select {
    padding-right: 2.25rem;
    width: 100%;
}

.input-chevron {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
    pointer-events: none;
}

.select-wrapper .input-chevron {
    right: 0.75rem;
}

.search-input,
.search-select {
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s;
    background: var(--color-white);
    appearance: none;
    -webkit-appearance: none;
}

.select-wrapper select.search-select {
    cursor: pointer;
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 45, 91, 0.1);
}

.input-label .required {
    color: #DC2626;
}

.input-hint {
    font-size: 0.8125rem;
    color: #6B7280;
    margin-top: 0.35rem;
    margin-bottom: 0;
}

/* Test pre-booked date & time picker */
.input-date-wrapper .search-input {
    cursor: pointer;
}
.profile-section:last-child {
    font-weight: 700;
    margin-bottom: 0px;
    margin-top: 10px;
    color: #cc4343;
    font-size: large;
}
.input-calendar-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
    pointer-events: none;
}

/* Flatpickr calendar - match theme */
.flatpickr-calendar.open {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.flatpickr-time input:focus {
    border-color: var(--color-primary);
}

/* Search button - grey style like image */
.search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #E5E7EB;
    color: #374151;
    border: 1px solid #D1D5DB;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: background-color 0.2s, border-color 0.2s;
}

.search-btn-icon {
    flex-shrink: 0;
}

.search-btn:hover {
    background-color: #D1D5DB;
    border-color: #9CA3AF;
}

.search-btn:active {
    transform: scale(0.98);
}

.hero-subheading {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
    max-width: 560px;
}

/* Subheading below card on hero - light when on dark bg */
.hero-section .hero-subheading {
    color: var(--color-white);
    opacity: 0.95;
}

/* Hero with optional background image (steering wheel) */
.hero-section.has-hero-bg {
    background-size: cover;
    background-position: center;
}

.hero-section.has-hero-bg .hero-title,
.hero-section.has-hero-bg .hero-rating,
.hero-section.has-hero-bg .hero-subheading {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive - stack search bar vertically */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 3rem 0;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .input-group {
        min-width: 100%;
    }

    .input-group-btn {
        margin-top: 0.25rem;
    }
}

/* ========================================
   Learner / Instructor Login Pages
   ======================================== */
.page-login {
    padding: 3rem 0 4rem;
    min-height: 60vh;
}

.login-wrap {
    max-width: 420px;
    margin: 0 auto;
}

.login-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB;
}

.login-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.login-intro {
    font-size: 0.9375rem;
    color: #6B7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.login-card form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4B5563;
    margin-bottom: 0.35rem;
}

.login-card form input[type="text"],
.login-card form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.login-card form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 45, 91, 0.1);
}

.login-card form .login-remember {
    margin-bottom: 1rem;
}

.login-card form .login-remember label {
    display: inline;
    font-weight: 500;
    margin-left: 0.5rem;
}

.login-card form input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--color-primary);
    vertical-align: middle;
}

.login-card form .login-submit {
    margin-top: 1rem;
    margin-bottom: 0;
}

.login-card form input[type="submit"] {
    width: 100%;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-card form input[type="submit"]:hover {
    background: #004080;
}

.login-links {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.9375rem;
}

.login-links a {
    color: var(--color-primary);
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-logged-in {
    font-size: 0.9375rem;
    color: #4B5563;
}

.login-logged-in a {
    color: var(--color-primary);
    text-decoration: none;
}

.login-logged-in a:hover {
    text-decoration: underline;
}

.login-back {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9375rem;
}

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

.login-back a:hover {
    text-decoration: underline;
}

.login-card form input[type="text"],
.login-card form input[type="email"],
.login-card .form-group input[type="tel"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.form-actions button {
    padding: 9px 20px;

}

/* ========================================
   Homepage Sections
   ======================================== */
.section-padding {
    padding: 5rem 0;
}

.bg-white {
    background-color: var(--color-white);
}

.bg-gray {
    background-color: #F9FAFB;
}

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

.section-title {
    font-size: 2.25rem;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6B7280;
    margin-bottom: 3rem;
}

/* Features Grid (How it Works) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding-top: 1rem;
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: #EFF6FF;
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text-dark);
}

.feature-text {
    color: #6B7280;
    line-height: 1.6;
}

/* Benefits Grid (Why Choose Us) */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 4rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #D1FAE5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    margin-top: 2px;
}

.benefit-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--color-text-dark);
}

.benefit-text {
    color: #6B7280;
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Instructor CTA */
.cta-section {
    background: var(--color-primary);
    color: var(--color-white);
}

.cta-container {
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.cta-text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-btn {
    background: var(--color-secondary);
    color: #1F2937;
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: #FCD34D;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========================================
   Payment Page
   ======================================== */
.page-payment .container {
    max-width: 1000px;
}

.payment-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    margin-top: 2rem;
}

.payment-summary-box {
    background: #F9FAFB;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #4B5563;
}

.payment-summary-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 1.5rem 0;
    border: none;
}

.payment-total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.25rem;
    color: #111827;
}

.payment-methods-box h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.payment-option-card {
    border: 1px solid #D1D5DB;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.2s;
    background: var(--color-white);
}

.payment-option-card:hover {
    border-color: #9CA3AF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.payment-option-card label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    width: 100%;
}

.payment-option-card input {
    margin-right: 0.75rem;
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--color-primary);
}

@media (max-width: 768px) {
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .payment-grid>div:first-child {
        order: 2;
        /* Move summary below payment on mobile? Or keep top? top is usually better for trust. */
        order: 1;
    }
}

/* ========================================
   Instructor Dashboard
   ======================================== */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

.dashboard-nav {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 2rem;
}

.dashboard-tab {
    padding: 0.75rem 0;
    font-weight: 600;
    color: #6B7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}

.dashboard-tab:hover {
    color: var(--color-text-dark);
}

.dashboard-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.dashboard-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.dashboard-pane.active {
    display: block;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.stat-label {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-white);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.booking-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.booking-info p {
    margin: 0;
    color: #6B7280;
    font-size: 0.875rem;
}

.booking-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-confirmed {
    background: #D1FAE5;
    color: #065F46;
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-instructor-results {
    padding: 2rem 0 4rem;
}

.results-header {
    margin-bottom: 2rem;
}

.results-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.results-summary {
    font-size: 1rem;
    color: #6B7280;
    margin-bottom: 0.75rem;
}

.results-summary strong {
    color: var(--color-text-dark);
}

.results-back-link {
    display: inline-block;
    font-size: 0.9375rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.results-back-link:hover {
    text-decoration: underline;
}

.instructor-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.instructor-card {
    background: var(--color-white);
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.instructor-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
}

.instructor-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    overflow: hidden;
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-initial {
    line-height: 1;
}

.instructor-details {
    flex: 1;
    min-width: 0;
}

.instructor-name {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
    color: var(--color-text-dark);
}

.instructor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.instructor-rating {
    color: #F59E0B;
    font-weight: 600;
}

.instructor-bio {
    font-size: 0.9375rem;
    color: #4B5563;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.instructor-areas {
    font-size: 0.8125rem;
    color: #9CA3AF;
    margin-bottom: 0.5rem;
}

.instructor-view-profile {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.instructor-view-profile:hover {
    text-decoration: underline;
}

.instructor-book {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.instructor-price {
    line-height: 1.2;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.price-unit {
    font-size: 0.875rem;
    color: #6B7280;
}

.btn-book {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-book:hover {
    background: #004080;
    color: var(--color-white);
}

.results-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: #F9FAFB;
    border-radius: 12px;
    color: #6B7280;
}

.results-empty .btn-book {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .instructor-card-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .instructor-avatar {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }

    .instructor-book {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
}

/* ========================================
   Instructor Profile Page (View profile)
   ======================================== */
.page-instructor-profile {
    padding: 2rem 0 4rem;
}

.profile-back,
.profile-back-link {
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.profile-back-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.profile-back-link:hover {
    text-decoration: underline;
}

.instructor-profile {
    background: var(--color-white);
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    flex-wrap: wrap;
}

.profile-image-wrap {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-initial {
    line-height: 1;
}

.profile-heading {
    flex: 1;
    min-width: 200px;
}

.profile-name {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.9375rem;
    color: #6B7280;
    margin-bottom: 0.35rem;
}

.profile-rating {
    color: #F59E0B;
    font-weight: 600;
}

.profile-areas {
    font-size: 0.9375rem;
    color: #9CA3AF;
}

.profile-book-side {
    flex-shrink: 0;
    text-align: right;
}

.profile-price {
    margin-bottom: 0.75rem;
}

.profile-price .price-amount {
    font-size: 1.75rem;
}

.profile-price .price-unit {
    font-size: 0.9375rem;
}

.btn-book-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.profile-body {
    padding: 0 2rem 2rem;
}

.profile-section {
    margin-bottom: 1.5rem;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.profile-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: #4B5563;
    margin: 0;
}

.profile-details-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9375rem;
    color: #4B5563;
}

.profile-details-list li {
    margin-bottom: 0.35rem;
}

/* Booking & Payment section */
.profile-booking {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
}

.profile-booking .profile-section-title {
    margin-bottom: 1rem;
}

.booking-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.booking-options-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--color-text-dark);
}

.booking-options-subtitle {
    font-size: 0.9375rem;
    color: #6B7280;
    margin-bottom: 1.25rem;
}

.lesson-packages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lesson-package-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.lesson-package-option:hover {
    border-color: #D1D5DB;
    background: #F9FAFB;
}

.lesson-package-option input:checked+.package-content,
.lesson-package-option:has(input:checked) {
    border-color: var(--color-secondary);
}

.lesson-package-option:has(input:checked) {
    border-color: var(--color-secondary);
    background: rgba(255, 193, 7, 0.08);
}

.lesson-package-option input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.package-content {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
}

.package-hours {
    font-weight: 600;
    color: var(--color-text-dark);
}

.package-badge {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--color-secondary);
    color: #7c5a00;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.package-desc {
    width: 100%;
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.4;
}

.lesson-package-custom .package-desc {
    display: none;
}

.custom-hours-wrap {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #F9FAFB;
    max-height: 180px;
    overflow-y: auto;
}

.custom-hours-wrap[aria-hidden="true"] {
    display: none;
}

.custom-hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.custom-hour-option {
    display: block;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9375rem;
}

.custom-hour-option:hover {
    background: #E5E7EB;
}

.custom-hour-option input:checked+br+span,
.custom-hour-option:has(input:checked) {
    background: rgba(255, 193, 7, 0.2);
}

.custom-hour-option:has(input:checked) {
    background: rgba(255, 193, 7, 0.2);
}

.custom-hour-option input {
    margin-right: 0.5rem;
}

/* Order Summary */
.booking-summary {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #E5E7EB;
    position: sticky;
    top: 1rem;
}

.order-summary-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.order-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    color: #4B5563;
}

.order-summary-discount .summary-value-negative {
    color: #059669;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #E5E7EB;
    color: var(--color-text-dark);
}

.summary-info-icon {
    cursor: help;
    opacity: 0.7;
}

.payment-plan {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0.75rem 0 1rem;
}

main.site-content.page-payment {
    padding: 35px 0;
}

.btn-continue {
    display: block;
    width: 100%;
    background: var(--color-secondary);
    color: #7c5a00;
    border: none;
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-continue:hover {
    background: #ffcd38;
}

.payment-providers {
    margin-top: 1rem;
    font-size: 0.45rem;
    color: #9CA3AF;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.payment-provider {
    text-transform: lowercase;
}

@media (max-width: 900px) {
    .booking-layout {
        grid-template-columns: 1fr;
    }

    .booking-summary {
        position: static;
    }
}

.profile-not-found {
    text-align: center;
    padding: 3rem 2rem;
    background: #F9FAFB;
    border-radius: 12px;
    color: #6B7280;
}

.profile-not-found h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.profile-not-found .btn-book {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
    }

    .profile-image-wrap {
        width: 120px;
        height: 120px;
        font-size: 2.25rem;
        margin: 0 auto;
    }

    .profile-book-side {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .profile-body {
        padding: 0 1.5rem 1.5rem;
    }
}

/* ========================================
   Registration Form
   ======================================== */
.register-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.register-form .form-group {
    margin-bottom: 1rem;
    width: 100%;
}

.register-form .form-group.half {
    width: 50%;
    margin-bottom: 0;
}

.register-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #4B5563;
    font-size: 0.875rem;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="tel"],
.register-form select,
.register-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}

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

.register-form .description {
    font-size: 0.8125rem;
    color: #6B7280;
    margin-bottom: 0.5rem;
    margin-top: -0.25rem;
}

.register-form textarea {
    resize: vertical;
}

.register-form .form-actions {
    margin-top: 1.5rem;
}

.register-link-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
    text-align: center;
}

.register-link-container p {
    margin-bottom: 0.5rem;
    color: #6B7280;
}

.message.success {
    background: #DCFCE7;
    color: #166534;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #BBF7D0;
    margin-bottom: 1.5rem;
    text-align: center;
}

.message.success a {
    color: #15803d;
    font-weight: 600;
}

/* Ensure mobile responsiveness */
@media (max-width: 480px) {
    .register-form .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .register-form .form-group.half {
        width: 100%;
        margin-bottom: 1rem;
    }
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
}

.calendar-grid {
    max-width: 370px !important;
}
.calendar-header {
    width: 62% !important;
    margin: auto !important;

}