/* Basic reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    height: 100%
}

body {
    font-family: Montserrat, system-ui, Segoe UI, Arial, sans-serif;
    color: #fff
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto
}

:root {
    --anim-fast: 180ms;
    --anim-medium: 280ms;
    --anim-slow: 800ms;
    --ease-default: cubic-bezier(.2, .9, .2, 1);
    --accent: #4a4a4a;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 40;
    padding: 22px 0
}
/* animate header for hide/show on scroll */
.site-header {
    transition: transform 260ms var(--ease-default), background-color 200ms ease, box-shadow 200ms ease;
}
.site-header.hidden {
    transform: translateY(-120%);
}

/* When page is scrolled, make header opaque and switch link colors */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.08);
}

.site-header.scrolled .logo {
    color: #111;
}

.site-header.scrolled .nav a {
    color: #111;
}

.site-header.scrolled .nav a.contact {
    border-color: rgba(17, 17, 17, 0.08);
}

.site-header.scrolled .hamburger span {
    background: #111;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative
}

.logo {
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform var(--anim-fast) var(--ease-default), filter var(--anim-fast) var(--ease-default);
}



.nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center
}

.nav a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    padding: 4px 0;
    display: inline-block;
    transition: color .18s ease
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.75));
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--anim-medium) var(--ease-default);
    will-change: transform;
}

.nav a:hover::after,
.nav a:focus::after {
    transform: scaleX(1)
}

.nav a.contact {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 3px
}

.nav a.contact::after {
    display: none
}

/* Hamburger button */
.hamburger {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 6px
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: transform var(--anim-fast) var(--ease-default), opacity var(--anim-fast) var(--ease-default);
    will-change: transform, opacity;
}


/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center
}

/* Wave divider at bottom of hero */
.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    line-height: 0;
    pointer-events: none;
    z-index: 9
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 100px
}

.hero-wave path {
    filter: drop-shadow(0 -6px 18px rgba(0, 0, 0, 0.18));
}

/* Ensure content below the hero isn't covered by the wave */
.after-hero {
    background: #fff;
    padding: 80px 0
}

/* About / feature section styles */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Fade-in for the about block (similar to hero) */
.after-hero .about {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp var(--anim-slow) var(--ease-default) both;
    animation-delay: .5s;
    will-change: transform, opacity;
}

.about-left {
    position: relative;
    padding-left: 20px;
}

.photo {
    overflow: hidden;
}

.photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-large {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.15);
}

.photo-small {
    position: absolute;
    right: -30px;
    top: 60px;
    width: 300px;
    height: 420px;
    border-radius: 50% / 40%;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.support-pill {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(90deg, var(--accent), #000000);
    color: #fff;
    padding: 16px 28px;
    border-radius: 999px;
    width: max-content;
    margin-top: 28px;
    box-shadow: 0 12px 30px rgba(224, 127, 8, 0.14);
    transition: transform var(--anim-fast) var(--ease-default), box-shadow var(--anim-fast) var(--ease-default);
    cursor: default;
    position: relative;
    z-index: 1;
}

.support-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--accent);
    font-size: 26px;
    font-weight: 800;
    box-shadow: inset 0 -6px 18px rgba(0, 0, 0, 0.06);
}

.support-title {
    font-size: 13px;
    opacity: 0.95;
}

.support-phone a {
    font-weight: 700;
    color:#fff;
    text-decoration: none;
    text-transform: none;
}


@media (max-width:900px) {
    .support-pill {
        margin: 20px auto 0;
        display: inline-flex
    }


    @keyframes pulse-border {
        0% {
            transform: scale(0.95);
            opacity: 0.9
        }

        50% {
            transform: scale(1.06);
            opacity: 0.18
        }

        100% {
            transform: scale(0.95);
            opacity: 0.9
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .support-pill::after {
            animation: none
        }
    }

    .support-icon {
        width: 54px;
        height: 54px;
        font-size: 20px
    }

    .support-phone {
        font-size: 16px
    }
}

.about-right {
    padding: 10px 40px;
}

.badge {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(235, 235, 235, 0.306);
    color: #111;
    border-radius: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: 0 80px 30px rgba(235, 235, 235, 0.306)
}

.about-title {
    font-size: 34px;
    margin-bottom: 12px;
    color: #111;
}

.about-title .highlight {
    color: var(--accent);
}

.about-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 22px;
}

.stats {
    display: flex;
    gap: 28px;
    margin-bottom: 22px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-num {
    font-weight: 800;
    color: var(--accent);
    font-size: 20px;
}

.stat-label {
    color: #666;
}

.btn.orange {
    background: #000;
    color: #fff;
    border: 1px solid transparent;
    box-shadow: none;
    border-radius: 30px;
    padding: 12px 24px;
    transition: .5s ease;
    will-change: background-color, color, transform;
}

.btn.orange:hover,
.btn.orange:focus {
    background: #fff;
    color: #111;
    border-color: #111;

/* Booking form fields */
label.form-field { display:block; margin-bottom:10px; color:#111; }
label.form-field .form-label { display:block; font-size:13px; color:#555; margin-bottom:6px; }
label.form-field input,
label.form-field select,
label.form-field textarea { width:100%; padding:10px 12px; border-radius:8px; border:1px solid #e6e9ef; background:#fff; color:#111; font-size:14px }
label.form-field textarea { min-height:86px; resize:vertical }
.date-row input[type="date"] { padding:10px 12px; }

@media (max-width:700px) {
    .date-row { flex-direction:column }
}
    box-shadow: none;
}

@media (max-width: 900px) {
    .about {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .photo-large {
        margin: 0 auto;
    }

    .photo-small {
        position: relative;
        right: auto;
        top: 24px;
        margin: 18px auto 0;
    }

    .about-right {
        padding: 0 10px;
    }

    .about-text {
        font-size: 15px;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.9)
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.65) 100%)
}

.hero-inner {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-top: 80px
}

.hero-inner>* {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp var(--anim-slow) var(--ease-default) both;
    will-change: transform, opacity;
}

.hero-inner .eyebrow {
    animation-delay: .2s
}

.hero-inner .hero-title {
    animation-delay: .35s
}

.hero-inner .hero-sub {
    animation-delay: .6s
}

.hero-inner .cta {
    animation-delay: .85s
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Generic reveal animation used across sections */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    /* container holds children that will animate in */
    opacity: 1;
    /* container itself remains visible */
}

.reveal .reveal-child {
    opacity: 0;
    transform: translateY(12px);
    animation: revealUp 300ms var(--ease-default) both;
}

/* small stagger for children; JS will set inline animation-delay for each child */

@media (prefers-reduced-motion: reduce) {
    .reveal .reveal-child {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.eyebrow {
    opacity: 0.85;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 600
}

.hero-title {
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.9;
    margin-bottom: 18px;
    font-size: clamp(36px, 8vw, 120px)
}

.hero-sub {
    opacity: 0.9;
    margin-bottom: 26px;
    font-size: 18px
}

.cta {
    display: flex;
    gap: 18px;
    justify-content: center
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background-color var(--anim-medium) var(--ease-default), color var(--anim-medium) var(--ease-default), transform var(--anim-fast) var(--ease-default), box-shadow var(--anim-fast) var(--ease-default), border-color var(--anim-fast) var(--ease-default);
    will-change: transform, background-color, color;
}

/* tactile/press feedback */
.btn, .filter-pill, .hamburger, .testimonial-nav {
    cursor: pointer;
}

.btn:active, .filter-pill:active, .hamburger:active, .testimonial-nav:active {
    transform: translateY(1px) scale(0.995);
    opacity: 0.98;
}

.pressed {
    transform: translateY(1px) scale(0.992) !important;
    transition: transform 120ms linear !important;
}

.btn.primary {
    background: #fff;
    color: #111;
    border: 2px solid transparent;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.btn.primary:hover {
    background: transparent;
    color: #fff;
    transition: .5s ease;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.btn.outline {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: rgba(255, 255, 255, 0.95);
    background: transparent;
}

.btn.outline:hover,
.btn.outline:focus {
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    transition: .5s ease;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.12);
    outline-offset: 3px;
}

@media (max-width:700px) {
    .nav ul {
        display: none
    }

    .hero-title {
        font-size: clamp(28px, 10vw, 48px)
    }

    .hero-sub {
        font-size: 15px
    }

    .eyebrow {
        font-size: 12px
    }

    .btn {
        padding: 12px 18px
    }

    .hamburger {
        display: block;
        position: fixed;
        right: 12px;
        top: 12px;
        z-index: 60
    }

    /* Mobile menu when header has .open */
    .site-header {
        position: fixed;
        left: 0;
        right: 0
    }

    .site-header.open .nav {
        display: flex;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.95);
        z-index: 45
    }

    .site-header.open .nav ul {
        display: flex;
        flex-direction: column;
        gap: 28px
    }

    .site-header.open .nav a {
        font-size: 22px
    }

/* Make the mobile nav links larger and centered */
.site-header.open .nav ul {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
}
.site-header.open .nav {
    padding: 40px 20px;
}

    /* Ensure menu text is white on the fullscreen overlay */
    .site-header.open .nav a,
    .site-header.open .nav a:link,
    .site-header.open .nav a:visited {
        color: #ffffff !important;
    }
    .site-header.open .nav a.contact {
        color: #111 !important;
        background: #fff !important;
        border-color: rgba(17,17,17,0.06) !important;
    }
    .site-header.open .nav a.contact:hover {
        background: #fff;
        color: #111;
    }

    /* Ensure hamburger/close icon lines are white on the dark fullscreen menu */
    .site-header.open .hamburger span {
        background: #fff !important;
    }

    /* Optional: give the hamburger a subtle white circular background when open for visibility */
    .site-header.open .hamburger {
        background: rgba(255,255,255,0.06);
        border-radius: 999px;
        padding: 8px;
    }

    /* hamburger transform when open */
    .site-header.open .hamburger {
        position: fixed;
        right: 12px;
        top: 12px
    }

    .site-header.open .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg)
    }

    .site-header.open .hamburger span:nth-child(2) {
        opacity: 0
    }

    .site-header.open .hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg)
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition: none !important;
    }
}

/* Categories section */
.categories-section {
    padding: 72px 0;
}

.categories-header {
    text-align: center;
    margin-bottom: 28px
}

.categories-title {
    font-size: 28px;
    color: #111;
    margin: 10px 0
}

.categories-sub {
    color: #666;
    margin-bottom: 6px
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch
}

.category-pill {
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.1);
    padding: 14px 18px;
    border-radius: 999px;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    transition: transform var(--anim-fast) var(--ease-default), box-shadow var(--anim-fast) var(--ease-default), background-color var(--anim-medium) var(--ease-default);
    will-change: transform, box-shadow, background-color
}

.category-pill:hover,
.category-pill:focus {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.1);
    background: #fff
}

/* staggered fade-in for pills */
.categories-grid .category-pill {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUpSmall var(--anim-medium) var(--ease-default) both
}

.categories-grid .category-pill:nth-child(1) {
    animation-delay: .05s
}

.categories-grid .category-pill:nth-child(2) {
    animation-delay: .08s
}

.categories-grid .category-pill:nth-child(3) {
    animation-delay: .11s
}

.categories-grid .category-pill:nth-child(4) {
    animation-delay: .14s
}

.categories-grid .category-pill:nth-child(5) {
    animation-delay: .17s
}

.categories-grid .category-pill:nth-child(6) {
    animation-delay: .20s
}

.categories-grid .category-pill:nth-child(7) {
    animation-delay: .23s
}

.categories-grid .category-pill:nth-child(8) {
    animation-delay: .26s
}

.categories-grid .category-pill:nth-child(9) {
    animation-delay: .29s
}

.categories-grid .category-pill:nth-child(10) {
    animation-delay: .32s
}

.categories-grid .category-pill:nth-child(11) {
    animation-delay: .35s
}

.categories-grid .category-pill:nth-child(12) {
    animation-delay: .38s
}

@keyframes fadeInUpSmall {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (max-width:1000px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width:700px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .categories-section {
        padding: 40px 0
    }
}

/* How we operate section */
.how-section {
    padding: 84px 0
}

.how-header .how-title {
    font-size: 36px;
    color: #111;
    margin-top: 8px;
    font-weight: 800
}

.how-header .badge {
    margin: 0 auto 8px;
    display: inline-block
}

.how-header .how-title .highlight {
    color: var(--accent)
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
    position: relative
}

.how-card {
    background: transparent;
    text-align: center;
    padding: 24px 22px;
    border-radius: 8px;
    position: relative
}

/* vertical separators between cards */
.how-card:not(:first-child)::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 14%;
    bottom: 14%;
    width: 1px;
    background: #b9b9b991;
    border-radius: 2px
}

.how-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    font-size: 26px;
    position: relative;
    z-index: 4
}

.how-icon {
    margin-bottom: -36px
}

.how-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    margin: 8px auto 18px;
    border: 6px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.518)
}

.how-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.how-card-title {
    font-size: 20px;
    margin-bottom: 8px;
    color: #111;
    font-weight: 700
}

.how-card-desc {
    color: #6b5b4b;
    line-height: 1.6;
    font-size: 15px;
    padding: 0 18px;
    max-width: 420px;
    margin: 0 auto
}

/* animate with slight stagger */
.how-card {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUpSmall var(--anim-medium) var(--ease-default) both
}

.how-card:nth-child(1) {
    animation-delay: .08s
}

.how-card:nth-child(2) {
    animation-delay: .16s
}

.how-card:nth-child(3) {
    animation-delay: .24s
}

@media (max-width:1000px) {
    .how-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .how-card:not(:first-child)::before {
        left: 16px;
        top: 6%;
        bottom: 6%;
        height: auto
    }
}

@media (max-width:700px) {
    .how-grid {
        grid-template-columns: 1fr
    }

    .how-card:not(:first-child)::before {
        display: none
    }

    .how-image {
        width: 160px;
        height: 160px
    }

    .how-header .how-title {
        font-size: 24px
    }
}

/* Courses / Cards styles */
.courses-section {
    padding: 64px 0 100px;
    background: #fff;
}

.courses-header {
    text-align: center;
    margin-bottom: 26px;
}

.courses-title {
    font-size: 28px;
    color: #111;
    margin: 10px 0 14px;
    font-weight: 800;
}

.courses-title .accent {
    color: #111;
}

.courses-filter {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 22px
}

.filter-pill {
    background: #fff;
    border: 1px solid #e6e6e6;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    color: #333;
    cursor: pointer
}

.filter-pill.active {
    background: #111;
    color: #fff;
    border-color: #111
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.course-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(17, 17, 17, 0.04);
    transition: transform 220ms var(--ease-default), box-shadow 220ms var(--ease-default);
}

.course-card.expanded {
    box-shadow: 0 20px 60px rgba(17, 17, 17, 0.12);
    transform: translateY(-6px);
}

/* Expand smoothly on hover for pointer devices */
.course-card:hover {
    box-shadow: 0 20px 60px rgba(17, 17, 17, 0.12);
    transform: translateY(-6px);
}

/* Avoid hover-effects on touch users who prefer reduced motion */
@media (hover: none) and (pointer: coarse),
(prefers-reduced-motion: reduce) {
    .course-card {
        transition: none;
    }

    .course-card:hover {
        transform: none;
        box-shadow: 0 8px 30px rgba(17, 17, 17, 0.04);
    }
}

.card-media {
    position: relative;
}

.card-media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block
}

.card-media .tag {
    position: absolute;
    left: 14px;
    top: 14px;
    background: #fff3e0;
    color: #111;
    padding: 6px 10px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 12px
}

.card-body {
    padding: 18px
}

.card-title {
    font-size: 18px;
    color: #111;
    margin-bottom: 8px
}

.card-body p {
    color: #555;
    margin-bottom: 8px
}

.specs {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px
}

.spec {
    background: #f3f3f3;
    color: #333;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px
}

.class-label {
    color: #666;
    font-size: 13px;
    margin-top: 6px
}

.card-meta {
    color: #7a7a7a;
    font-size: 13px;
    margin-bottom: 10px
}

.card-instructor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover
}

.instructor-info .name {
    font-weight: 700;
    color: #333
}

.instructor-info .role {
    font-size: 12px;
    color: #8a8a8a
}

.rating {
    margin-left: auto;
    color: #f4b042;
    font-weight: 700;
    font-size: 13px
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-top: 1px solid #f1f1f1
}

.price {
    font-weight: 800;
    color: #111;
    font-size: 18px
}

/* Card action buttons (favorite / cart) - circular */
.card-actions { margin-left: auto; display:flex; gap:10px; align-items:center }
.card-actions .btn {
    width:56px;
    height:56px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    background:#ffffff;
    color:#111;
    border:1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    padding:0;
}
.card-actions .btn:hover { box-shadow: 0 18px 36px rgba(0,0,0,0.12); }
.card-actions .btn.fav { background: #fff4f6; color: #d6336c }
.card-actions .btn.to-cart { background: #f4fbff; color: #0b69ff }


@media (max-width:1000px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:700px) {
    .cards-grid {
        grid-template-columns: 1fr
    }

    .card-media img {
        height: 180px
    }

    .courses-section {
        padding: 40px 0
    }
}

/* header cart */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px
}

.cart-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer
}

.cart-count {
    background: #111;
    color: #111;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 800
}

.cart-btn.bump {
    transform: scale(1.06);
    transition: transform 160ms ease
}

/* utility hidden for cards */
.course-card.hidden {
    display: none
}

/* Testimonial section */
.testimonial-section {
    padding: 72px 0;
    background: #fff;
    color: #111;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}

.testimonial-left .badge {
    background: rgba(235, 235, 235, 0.306);
    color: #111;
}

.testimonial-title {
    font-size: 40px;
    line-height: 1.02;
    margin: 18px 0;
    color: #111;
}

.testimonial-sub {
    color: #666;
    max-width: 560px;
}

.testimonial-right {
    position: relative;
}

.testimonial-card {
    background: rgba(235, 235, 235, 0.306);
    padding: 34px 36px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(17, 17, 17, 0.06);
}

/* Fade transition for testimonial content swaps */
.testimonial-card {
    transition: opacity 360ms var(--ease-default), transform 360ms var(--ease-default);
}

.testimonial-card.hidden {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent layout shifts when testimonial content changes: reserve height on larger screens */
@media (min-width:1001px) {
    .testimonial-card {
        min-height: 220px;
        /* reserve space so content swaps don't change layout */
    }
}

.site-footer {
     background: rgba(235, 235, 235, 0.306);
    color: #111;
    padding: 36px 0 18px;
    border-top: 1px solid rgba(17, 17, 17, 0.04);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 220px 320px;
    gap: 28px;
    align-items: start;
}

/* Cart / Favorites widget in footer */
.footer-cart .cart-widget {
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 8px;
}
.cart-tabs {
    display:flex;
    gap:8px;
    margin-bottom:8px;
}
.cart-tab {
    background: #fff;
    color: #111;
    border: 1px solid rgba(17,17,17,0.06);
    padding:8px 14px;
    border-radius:999px;
    font-weight:700;
    display:inline-flex;
    align-items:center;
    gap:8px;
}
.cart-tab.active {
    background: #111;
    color: #fff;
    box-shadow: 0 8px 26px rgba(0,0,0,0.12);
}
.badge-count {
    display:inline-block;
    min-width:20px;
    padding:4px 8px;
    margin-left:0;
    font-size:12px;
    background: #ff6b6b;
    color:#fff;
    border-radius:999px;
    font-weight:700;
}
.item-list { max-height:150px; overflow:auto; padding:4px 2px; }
.item-list { position: relative; padding-right: 12px; }

/* Hide native scrollbars but keep scrolling functionality */
.item-list::-webkit-scrollbar { width: 0; height: 0; }
.item-list { -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Subtle fade on the right to hint more content without showing a scrollbar */
.item-list::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 18px;
    pointer-events: none;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}
.item { display:flex; align-items:center; gap:8px; padding:8px; border-bottom:1px dashed rgba(255,255,255,0.04); }
.item img { width:56px; height:42px; object-fit:cover; border-radius:6px; }
.item .meta { flex:1; }
.item .meta .title { font-size:14px; font-weight:700; }
.item .meta .sub { font-size:12px; color:rgba(255,255,255,0.6); }
.remove-btn { background:transparent; border:1px solid rgba(255,255,255,0.06); color:#fff; padding:6px 8px; border-radius:6px; }
.cart-actions { margin-top:10px; display:flex; justify-content:flex-start }
.btn.small { padding:6px 10px; font-size:13px; border-radius:999px }

/* Clear Cart / Clear Favorites buttons: black background, white text */
#clear-cart, #clear-fav {
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
#clear-cart:hover, #clear-fav:hover,
#clear-cart:focus, #clear-fav:focus {
    background: #000 !important;
    transform: translateY(-2px);
}

@media (max-width:900px){
  .item img{width:48px;height:36px}
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 12px
}

.footer-brand .logo {
    font-weight: 800;
    color: #111;
    font-size: 22px;
    margin-bottom: 8px
}

.footer-desc {
    color: #6b6b6b;
    margin-bottom: 12px
}

.footer-contacts .foot-line a {
    color: #333;
    margin-bottom: 6px;
    text-decoration: none
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.footer-links li {
    margin-bottom: 8px
}

.footer-links a {
    color: #111;
    text-decoration: none
}

.footer-posts .post {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center
}

.post-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px
}

.post-info a {
    display: block;
    color: #111;
    font-weight: 700;
    text-decoration: none
}

.post-date {
    color: #777;
    font-size: 12px
}

.testimonial-inner {
    transition: opacity 260ms var(--ease-default), transform 260ms var(--ease-default);
}

/* Footer placeholder / random post styles (moved out of testimonial-inner) */
.post-placeholder {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    display: block;
    color: #111;
}

.post-placeholder .post-loading {
    color: #666;
    font-size: 14px;
}

.post-card {
    display: flex;
    gap: 12px;
    align-items: center;
}

.post-card .post-thumb {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
}

.post-card .post-info a { font-size: 14px }
.post-card .post-date { font-size: 12px; color: #777 }

/* two-posts row in footer */
.posts-row { display: flex; gap: 12px; align-items: stretch }
.posts-row .post-placeholder { flex: 1 }

@media (max-width:1000px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-posts, .footer-links { margin-top: 18px }
    .posts-row { flex-direction: column }
}

/* brief highlight for targeted cards */
.course-card.flash {
    box-shadow: 0 8px 30px rgba(80, 150, 255, 0.18);
    transform: translateY(-4px);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.testimonial-inner.fade-out {
    opacity: 0;
    transform: translateY(8px);
}

.testimonial-card .stars {
    color: #f4b042;
    font-weight: 800;
    margin-bottom: 8px;
}

.testimonial-card .rating {
    color: #777;
    font-weight: 600;
    margin-left: 8px;
    font-size: 14px;
}

.test-card-title {
    margin: 8px 0 14px 0;
    font-size: 18px;
    color: #111;
}

.test-quote {
    color: #6b6b6b;
    line-height: 1.6;
    margin-bottom: 18px;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-sm {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

/* Form messages */
.form-success { color: #16a34a; font-weight: 600; margin-bottom: 8px; }
.form-error { color: #dc2626; margin-bottom: 8px; }

.booking-header { text-align: center; }

/* Booking page styles */
/* Booking page styles */
.booking-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 28px;
    align-items: start;
    padding: 24px 0 48px;
}

.booking-media {
    text-align: center;
}

.booking-media #vehicle-photo {
    margin: 0 auto 12px;
}

/* Override global .photo-large used elsewhere to avoid circular crop on booking page */
.booking-media .photo-large {
    width: 320px;
    height: 320px;
    border-radius: 50px; /* square with rounded corners */
    overflow: hidden;
}

/* Make booking vehicle image square with 50px rounded corners */
.booking-media #vehicle-photo img {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 25px;
    display: block;
    box-shadow: 0 14px 38px rgba(2,8,23,0.08);
}

@media (max-width: 900px) {
    .booking-media #vehicle-photo img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 28px;
    }
}

.booking-media #vehicle-title {
    font-size: 20px;
    color: #111;
    margin: 8px 0;
}

.booking-media .muted {
    color: #666;
    font-size: 14px;
}

.booking-form {
    background: linear-gradient(180deg,#ffffff 0%, #fbfbfb 100%);
    color: #111;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(6, 22, 42, 0.12), inset 0 1px 0 rgba(255,255,255,0.6);
    border: 1px solid rgba(17,17,17,0.04);
}

.booking-form h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.form-field { display:block; margin-bottom:14px; }
.form-field .form-label { display:block; font-size:13px; color:#6b6b6b; margin-bottom:8px; }
.form-field input, .form-field select, .form-field textarea {
    width:100%;
    padding: 12px 14px;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    font-size: 15px;
    color: #111;
    background: #fff;
    box-shadow: 0 2px 8px rgba(12,20,30,0.03);
    transition: box-shadow 180ms var(--ease-default), transform 120ms var(--ease-default), border-color 140ms var(--ease-default);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none;
    border-color: rgba(17,17,17,0.12);
    box-shadow: 0 8px 30px rgba(6,22,42,0.06);
    transform: translateY(-1px);
}

/* inline two-column row (used for compact fields) */
.form-row { display:flex; gap:12px; }
.form-row .form-field { flex:1; margin-bottom:0; }

/* fieldset styling */
fieldset { border: 1px solid #eee; padding: 10px 12px; border-radius: 10px; }
legend { padding: 0 6px; font-weight:700; color:#555; }

/* custom radio visuals */
.radio-inline { display:inline-flex; align-items:center; gap:8px; margin-right:12px; color:#444; }
.radio-inline input[type="radio"] { appearance: none; width:18px; height:18px; border-radius:50%; border:2px solid #d6d6d6; display:inline-grid; place-items:center; position:relative; }
.radio-inline input[type="radio"]::after { content:''; width:9px; height:9px; border-radius:50%; background:transparent; transform:scale(0); transition: transform 140ms var(--ease-default); }
.radio-inline input[type="radio"]:checked { border-color: #111; }
.radio-inline input[type="radio"]:checked::after { background:#111; transform:scale(1); }

/* driver badges used in driver cards and small labels */
.driver-cars {
    display: inline-block;
    background: #f7f8fa;
    color: #333;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    margin-top: 8px;
    border: 1px solid rgba(17,17,17,0.04);
}

/* Booking form buttons: elevated and tactile */
.booking-form .btn.primary {
    background: linear-gradient(180deg,#111 0%, #0b0b0b 100%);
    color: #fff;
    border-color: transparent;
    padding: 12px 20px;
    box-shadow: 0 12px 30px rgba(17,17,17,0.18);
}
.booking-form .btn.primary:active { transform: translateY(1px) scale(0.998); }
.booking-form .btn.outline {
    background: transparent;
    color: #111;
    border-color: rgba(17,17,17,0.08);
}

/* subtle helper */
.muted { color: #666; }

@media (max-width: 900px) {
    .booking-grid { grid-template-columns: 1fr; }
    .booking-media { order: -1; margin-bottom: 18px; }
    .booking-media #vehicle-photo .photo-large { width: 100%; height: auto; border-radius: 10px; }
    .booking-form { padding: 18px; }
    .form-row { flex-direction: column; }
}

@media (max-width: 420px) {
    .booking-grid { gap: 16px; padding: 12px 0 32px; }
    .booking-media #vehicle-title { font-size: 18px; }
    .form-field .form-label { font-size: 12px; }
}

/* vehicle card on booking page */
.vehicle-card { display:flex; flex-direction:column; gap:12px; align-items:center; }
.vehicle-card .vehicle-info { text-align:left; width:100%; }
.vehicle-meta { display:flex; justify-content:space-between; align-items:center; margin-top:10px; gap:12px; }
.vehicle-meta .spec { background:#f3f4f6; color:#444; padding:6px 10px; border-radius:8px; font-weight:700; }
.vehicle-price { font-weight:800; color:#111; }
.vehicle-specs .small { font-size:13px; color:#666; margin-top:6px; }

@media (max-width:900px) {
    .vehicle-meta { flex-direction:column; align-items:flex-start; gap:8px; }
}

/* spec label/value rows for even alignment */
.spec-row { display:flex; gap:12px; align-items:flex-start; margin:6px 0; }
.spec-label { width:120px; color:#555; font-weight:700; flex:0 0 120px; }
.spec-value { color:#444; flex:1; }

/* make sure the vehicle info remains left aligned inside the centered column */
.booking-media, .vehicle-card { align-items: center; }
.vehicle-card .vehicle-info { text-align:left; }

/* Drivers carousel styles */
.drivers-section { padding: 56px 0; background: #fff; color: #111; }
.drivers-header .badge { background: rgba(235,235,235,0.9); color: #111; }
.drivers-title { font-size: 28px; margin-top: 6px; font-weight: 800; }
.drivers-wrap { display: flex; align-items: center; gap: 12px; }
.drivers-carousel { overflow-x: auto; overflow-y: hidden; flex: 1; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.drivers-track { display: flex; gap: 18px; padding: 6px; scroll-snap-type: x mandatory; align-items: start; }
.driver-card { background: #fff; border-radius: 12px; border: 1px solid #eee; width: 260px; box-shadow: 0 8px 30px rgba(17,17,17,0.04); overflow: hidden; display: flex; flex-direction: column; flex: 0 0 auto; scroll-snap-align: start; }
.driver-photo img { width:100%; height:180px; object-fit:cover; display:block }
.driver-body { padding: 14px; }
.driver-body h4 { margin-bottom:6px; font-size:16px; color:#111 }
.driver-sub { color:#666; font-size:13px; margin-bottom:8px }
.driver-rating { color:#f4b042; font-weight:700; font-size:14px }
.drivers-nav { background: #111; color: #fff; border: 0; width:44px; height:44px; border-radius:8px; cursor:pointer; box-shadow: 0 10px 26px rgba(0,0,0,0.12); }
.drivers-nav:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,0.14); }
@media (max-width:900px) {
    .drivers-wrap { gap:8px }
    .driver-card { width: 220px }
    .driver-photo img { height:150px }
}

/* Hide native horizontal scrollbar for drivers carousel while keeping scroll */
.drivers-carousel::-webkit-scrollbar { height: 0; }
.drivers-carousel { -ms-overflow-style: none; /* IE and Edge */ scrollbar-width: none; /* Firefox */ }

/* Modal container and button polish */
.cart-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 120;
}
.cart-modal .cart-modal-box {
    background: #fff;
    color: #111;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(2,8,23,0.36);
    max-width: 920px;
    width: calc(100% - 48px);
    overflow: hidden;
}
.cart-modal .cart-modal-content {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 20px;
}
.cart-modal .cart-modal-media img {
    width: 360px;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(2,8,23,0.12);
}
@media (max-width:800px) {
    .cart-modal .cart-modal-content { flex-direction: column; }
    .cart-modal .cart-modal-media img { width: 100%; height: auto }
}

/* Close button (top-right) */
.cart-modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #111;
    border: 0;
    box-shadow: 0 8px 22px rgba(2,8,23,0.08);
    cursor: pointer;
    transition: transform 140ms var(--ease-default), box-shadow 160ms var(--ease-default), background-color 140ms var(--ease-default);
    font-size: 18px;
}
.cart-modal-close:hover,
.cart-modal-close:focus {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(2,8,23,0.14);
    background: #f6f7f9;
    outline: none;
}

/* Primary Book button in modal */
#modal-book-btn,
.cart-modal .cart-modal-actions .btn.primary {
    padding: 12px 22px;
    border-radius: 28px;
    background: #0b69ff;
    color: #fff;
    border: none;
    box-shadow: 0 12px 34px rgba(11,105,255,0.18);
    font-weight: 800;
    letter-spacing: .6px;
    transition: transform 140ms var(--ease-default), box-shadow 160ms var(--ease-default), background-color 140ms var(--ease-default);
}
#modal-book-btn:hover,
#modal-book-btn:focus,
.cart-modal .cart-modal-actions .btn.primary:hover,
.cart-modal .cart-modal-actions .btn.primary:focus {
    background: #064fcf;
    box-shadow: 0 22px 54px rgba(6,79,207,0.18);
    outline: none;
}

/* Secondary outline / Close action button inside modal */
.cart-modal .cart-modal-actions .btn.outline {
    padding: 10px 18px;
    border-radius: 18px;
    background: transparent;
    color: #111;
    border: 1px solid rgba(17,17,17,0.08);
    box-shadow: none;
    transition: transform 120ms var(--ease-default), background-color 140ms var(--ease-default), color 140ms var(--ease-default);
}
.cart-modal .cart-modal-actions .btn.outline:hover,
.cart-modal .cart-modal-actions .btn.outline:focus {
    transform: translateY(-3px);
    background: #f3f6fb;
    color: #111;
    box-shadow: 0 10px 24px rgba(2,8,23,0.06);
    outline: none;
}

/* keyboard focus visible */
.cart-modal .cart-modal-actions .btn:focus,
.cart-modal-close:focus { outline: 3px solid rgba(11,105,255,0.12); outline-offset: 3px }

/* Modal spec rows: label/value layout to avoid overlap */
.modal-specs { margin-top: 10px; }
.modal-row { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.modal-row strong { min-width: 110px; display: inline-block; font-weight: 700; color: #111; }
.modal-row span { flex: 1; color: #333; }
@media (max-width: 700px) {
    .modal-row strong { min-width: 86px; }
    .modal-row { gap: 8px; }
}

.author-name {
    font-weight: 800;
}

/* Explicit footer-bottom center override (keeps layout stable even if earlier blocks were nested) */
.footer-bottom {
    color: #6b6b6b;
    padding: 12px 0;
    font-size: 13px;
    text-align: center; /* center across full width */
    width: 100%;
}
.footer-bottom a.ui-paradox {
    color: #f59e0b;
    font-weight: 700;
    text-decoration: none;
    margin-left: 6px;
}

/* Remove pulse animation for the Online Support pill */
.support-pill::after {
    animation: none !important;
    opacity: 0.9 !important;
    transform: none !important;
}

.author-role {
    color: #7a7a7a;
    font-size: 13px
}

.testimonial-nav {
    position: absolute;
    right: -28px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #111;
    background: transparent;
    color: #111;
    font-size: 18px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.testimonial-nav.prev {
    right: auto;
    left: -28px
}

@media (max-width:1000px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .testimonial-nav {
        display: none
    }

    .testimonial-title {
        font-size: 32px
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-card {
        transition: none !important
    }
}

/* Photos + Form section */
.photos-form-section {
    padding: 72px 0;
    background: #fff;
    color: #111
}

.photos-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center
}

.photos-column {
    display: flex;
    justify-content: center
}

.photo-stack {
    position: relative;
    /* wider layout: left oval + two right circles */
    width: 500px;
    height: 520px;
}

.photo-stack .stack-img {
    position: absolute;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.photo-stack .img-a {
    /* tall oval on the left */
    left: 20px;
    top: 120px;
    width: 240px;
    height: 240px;
    border-radius: 48% / 50%;
}

.photo-stack .img-b {
    /* top-right circle */
    right: 0;
    top: 0px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

.photo-stack .img-c {
    right: 0;
    ;
    bottom: 36px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
}

.form-column {
    display: flex;
    justify-content: center
}

.form-card {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.08);
    border: 0.5px solid #505050;
}

.form-title {
    font-size: 24px;
    margin-bottom: 8px
}

.form-sub {
    color: #666;
    margin-bottom: 18px
}

.form-card .row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    font-size: 14px
}

.form-card textarea {
    resize: vertical
}

.form-row {
    margin: 12px 0
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #555
}

.form-error {
    color: #c0392b;
    min-height: 20px;
    margin-bottom: 8px
}

.form-actions {
    display: flex;
    justify-content: flex-end
}

/* Unified form field styling */
.form-field {
    display: block;
    margin-bottom: 12px;
}

.form-field .form-label {
    display: block;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
    font-size: 13px;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    font-size: 14px;
    background: #fff;
    transition: box-shadow 160ms var(--ease-default), border-color 160ms var(--ease-default);
}

.form-card input:focus,
.form-card textarea:focus {
    outline: none;
    border-color: #f4b042;
    box-shadow: 0 6px 20px rgba(244, 176, 66, 0.12);
}

.btn.primary {
    background: #111;
    color: #fff;
    border: 0;
    padding: 12px 20px;
    border-radius: 30px
}

.form-error {
    color: #b0413a;
    font-weight: 700;
}

.form-success {
    color: #1a7f37;
    font-weight: 700;
}

/* compact layout for two-column rows */
.form-card .row .form-field {
    flex: 1
}

@media (max-width:1000px) {
    .form-card .row {
        flex-direction: column
    }

    .form-card .row .form-field {
        width: 100%
    }
}

@media (max-width:1000px) {
    .photos-form-grid {
        grid-template-columns: 1fr;
    }

    .photo-stack {
        width: 320px;
        height: 260px;
        margin: 0 auto
    }

    .photo-stack .img-a {
        left: 0;
        top: 28px;
        width: 180px;
        height: 220px
    }

    .photo-stack .img-b {
        right: 0;
        top: 0;
        width: 200px;
        height: 200px
    }

    .photo-stack .img-c {
        left: 40px;
        bottom: 0;
        width: 160px;
        height: 160px
    }

    .form-card {
        padding: 20px
    }

    .form-card .row {
        flex-direction: column
    }
}

@media (max-width:900px) {
    .cart-btn {
        border-color: rgba(255, 255, 255, 0.18);
    }
}

/* Modal for cart item detail */
.cart-modal { position: fixed; inset: 0; display:flex; align-items:center; justify-content:center; z-index:120; }
.cart-modal[hidden] { display:none }
.cart-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.cart-modal-box { position: relative; width: min(920px, 96%); background: #fff; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.4); overflow: hidden; display:flex; }
.cart-modal-close { position: absolute; right: 12px; top: 12px; background: transparent; border:0; font-size:20px; padding:8px; cursor:pointer }
.cart-modal-content { display:flex; gap:18px; align-items:flex-start; padding:20px; width:100%; }
.cart-modal-media img { width:360px; height:240px; object-fit:cover; border-radius:8px; }
.cart-modal-meta { flex:1; }
.cart-modal-meta h3 { margin:0 0 6px 0 }
.modal-row { margin:6px 0; color:#333 }
.modal-row strong { display:inline-block; width:70px }
.modal-tag { display:inline-block; padding:6px 8px; background:#f3f3f3; border-radius:6px; color:#333; font-weight:700; margin:8px 0 }
.modal-price { font-weight:800; margin:8px 0 }
.modal-desc { color:#444; margin-top:6px }

/* Photo badge on modal image (top-left) */
.cart-modal-media { position: relative }
.photo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffffff;
    color: #111;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Make modal text black */
.cart-modal-meta, .cart-modal-meta .modal-row, .cart-modal-meta .modal-desc, .modal-contact { color: #111 }

.cart-modal-actions { margin-top:14px; display:flex; gap:10px }

@media (max-width:900px) {
    .cart-modal-content { flex-direction:column; align-items:center }
    .cart-modal-media img { width:260px; height:180px }
    .cart-modal-box { width: 94% }
}

/* Improved mobile adjustments for the car/item modal */
@media (max-width:600px) {
    .cart-modal { align-items: flex-end; }
    .cart-modal-box {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        display: block;
        overflow: hidden;
    }
    .cart-modal-overlay { background: rgba(0,0,0,0.65); }
    .cart-modal-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 12px;
        height: calc(100vh - 64px);
        overflow: auto;
    }
    .cart-modal-media img { width: 100%; height: auto; border-radius: 8px; }
    .cart-modal-meta { padding: 0 6px 12px 6px; }
    .cart-modal-close { right: 12px; top: 12px; width:44px; height:44px; font-size:18px; background:#fff; }
    .cart-modal-actions { flex-direction: column; }
    .cart-modal-actions .btn { width: 100%; }
    #modal-book-btn { width: 100%; }
}