/* Contact Us Page CSS - JanBask Style (matches aboutus.css/affiliate.css tokens) */

:root {
    --jb-blue: #046a8a;
    --jb-blue-dark: #136aab;
    --jb-purple: #624399;
    --jb-yellow: #f8bd00;
    --jb-red: #d52b1e;
    --jb-dark: #000;
    --jb-text: #333;
    --jb-muted: #555;
    --jb-light: #f3fafe;
    --jb-white: #fff;
    --jb-gradient: linear-gradient(135deg, #136aab, #624399);
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", sans-serif;
    color: var(--jb-text);
    overflow-x: hidden;
    padding-top: 86px;
}

@media (max-width: 767px) {
    body {
        padding-top: 68px;
    }
}

a {
    color: #000;
    text-decoration: none;
    transition: .3s;
}

a:hover {
    text-decoration: none;
}

section {
    overflow: hidden;
    padding: 80px 0;
}

.blueText {
    background: -webkit-linear-gradient(45deg, #000000, #055ea1 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 3px 8px rgb(0 0 0 / 8%);
}

/* The course-info strip (ratings/Curriculum/Demo Class) is meant for course
   pages only. On contact-us it has nothing relevant to show, and once it
   goes fixed on scroll (.enrollpyFixed) it's a full-width white bar that
   covers the hero banner and form behind it. */
.enrollpy-1,
.enrollpyFixed {
    display: none;
}

/* Common typography */
.jb-section {
    padding: 70px 0;
}

.jb-title {
    font-size: 2rem;
    line-height: 2.4rem;
    font-weight: 700;
    color: var(--jb-dark);
    margin-bottom: 16px;
}

.jb-subtitle {
    font-size: 1.1rem;
    line-height: 1.5rem;
    font-weight: 400;
    color: var(--jb-muted);
    margin-bottom: 20px;
}

/* Buttons */
.jb-btn {
    display: inline-block;
    border-radius: 50px;
    padding: 8px 38px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.8rem;
    text-align: center;
    border: none;
    box-shadow: 0 6px 8px 0 rgb(0 0 0 / 24%);
    transition: .3s;
}

.jb-btn:hover {
    text-decoration: none;
}

.jb-btn-yellow {
    background: var(--jb-yellow);
    color: #000;
}

.jb-btn-yellow:hover {
    background: #ffc50e;
    color: #000;
}

.jb-btn-blue {
    background: var(--jb-blue);
    color: #fff;
}

.jb-btn-blue:hover {
    background: #2ea0ca;
    color: #fff;
}

/* Hero with contact form */
.contact-hero {
    position: relative;
    padding: 95px 0 75px;
    background: var(--jb-gradient);
}

.contact-hero-text {
    max-width: 560px;
}

.contact-hero h1 {
    font-size: 2.2rem;
    line-height: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.contact-hero h1 span {
    color: var(--jb-yellow);
}

.contact-hero-text p {
    font-size: 1.1rem;
    line-height: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .95);
    margin-bottom: 0;
}

.contact-form-card {
    max-width: 440px;
    margin-left: auto;
    background: #fff;
    border-radius: 14px;
    padding: 26px 22px;
    box-shadow: 0 20px 45px rgb(0 0 0 / 30%);
}

.contact-form-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--jb-dark);
    margin-bottom: 4px;
}

.contact-form-card p {
    font-size: .85rem;
    font-weight: 500;
    color: var(--jb-blue-dark);
    margin-bottom: 14px;
}

.contact-form-card .form-control {
    height: 40px;
    border-radius: 8px;
    border: 1px solid #dbe3ea;
    font-size: 14px;
    box-shadow: none;
    margin-bottom: 10px;
}

.contact-form-card .form-control:focus {
    border-color: var(--jb-blue);
    box-shadow: none;
}

.contact-form-card .form-check-label {
    font-size: 12px;
    color: var(--jb-muted);
    line-height: 1.4;
}

.contact-form-card button[type="submit"] {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 44px;
    background: var(--jb-yellow);
    color: #000;
    font-size: 16px;
    font-weight: 700;
    margin-top: 8px;
}

/* Contact info cards */
.contact-info-card {
    height: 100%;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 2px 8px 0 rgb(0 0 0 / 12%);
    transition: .3s;
}

.contact-info-card:hover {
    background: var(--jb-light);
    transform: translateY(-4px);
}

.contact-info-card img {
    width: 56px;
    margin-bottom: 14px;
}

.contact-info-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--jb-dark);
    margin-bottom: 6px;
}

.contact-info-card a {
    color: var(--jb-blue);
    font-weight: 600;
}

/* Join Us cards */
.join-us-section {
    background: var(--jb-gradient);
    color: #fff;
}

.join-us-section .jb-title,
.join-us-section .jb-subtitle {
    color: #fff;
}

.join-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
    box-shadow: 0 4px 14px rgb(0 0 0 / 24%);
}

.join-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.join-card:hover img {
    transform: scale(1.06);
}

.join-card-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent);
}

.join-card-label a {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Global offices */
.office-card {
    height: 100%;
    background: #fff;
    border-radius: 10px;
    padding: 24px 22px;
    box-shadow: 0 2px 8px 0 rgb(0 0 0 / 12%);
}

.office-card img {
    width: 40px;
    margin-bottom: 12px;
}

.office-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--jb-dark);
    margin-bottom: 6px;
}

.office-card p {
    font-size: .95rem;
    color: var(--jb-muted);
    margin: 0;
}

.global-offices-section {
    background: var(--jb-light);
}

/* Responsive */
@media (max-width: 991px) {
    .contact-hero {
        padding: 80px 0 60px;
        min-height: 0;
    }

    .contact-hero h1 {
        font-size: 1.9rem;
        line-height: 2.3rem;
    }

    .contact-form-card {
        margin-top: 40px;
    }

    .jb-title {
        font-size: 1.7rem;
        line-height: 2.1rem;
    }
}

@media (max-width: 767px) {
    section,
    .jb-section {
        padding: 40px 0;
    }

    .contact-hero {
        padding: 65px 0 50px;
    }

    .contact-hero h1 {
        font-size: 1.4rem;
        line-height: 1.7rem;
    }

    .contact-hero-text p,
    .jb-subtitle {
        font-size: 15px;
        line-height: 1.35rem;
    }

    .jb-title {
        font-size: 1.3rem;
        line-height: 1.6rem;
    }

    .contact-form-card {
        max-width: 100%;
        margin-left: 0;
    }

    .join-card {
        height: 180px;
        margin-bottom: 16px;
    }
}
