/* ===========================================================
   Access Digital - shared site styles
   Linked from header.php. Used by all pages.
   =========================================================== */

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

:root {
    --navy:  #0f2c4d;
    --blue:  #1c86e0;
    --green: #6cbf27;
    --grey:  #5a6b7b;
    --line:  #e6ebf0;
}

html, body { height: 100%; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--navy);
    background: #fff;
}
  
a { text-decoration: none; }

/* ---------- Top Navigation ---------- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 40px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 30;
}
.navbar .logo img { height: 70px; width: 90px; display: block; }

.nav-links { display: flex; align-items: center; gap: 38px; list-style: none; }
.nav-links > li > a {
    color: var(--navy);
    font-size: 16px;
    font-weight: 500;
    padding: 6px 0;
    display: inline-block;
    transition: color .2s;
}
.nav-links > li > a:hover { color: var(--green); }
.nav-links > li > a.active { color: var(--green); }

/* Support hotline in nav */
.nav-links .hotline { text-align: right; line-height: 1.2; }
.nav-links .hotline .label { display: block; font-size: 10px; color: var(--grey); font-weight: 500; }
.nav-links .hotline a { color: #01a4f7; font-weight: 700; font-size: 14px; padding: 0; }
.nav-links .hotline a:hover { color: #01a4f7; }

/* Gradient pill button in nav (Sign Up) */
.nav-links > li > a.nav-btn {
    background: linear-gradient(to right, #01a4f7, #6bef23);
    color: #fff;
    padding: 6px 18px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 600;
    transition: filter .2s, transform .15s;
}
.nav-links > li > a.nav-btn:hover {
    color: #fff;
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* Dropdown (Policies) */
.dropdown { position: relative; }
.dropdown > a::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 44, 77, .12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .18s ease;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--grey);
    transition: background .15s, color .15s;
}
.dropdown-menu a:hover  { background: #f4f8fb; color: var(--navy); }
.dropdown-menu a.active { color: var(--green); font-weight: 600; }

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: .2s; }

/* ---------- Hero (home) ---------- */
.hero {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)),
        url('../images/bg-city.webp') no-repeat center center;
    background-size: cover;
}
.hero-inner { max-width: 1180px; width: 100%; margin: 0 auto; padding: 70px 40px; text-align: center; }
.hero h1 {
    font-size: 62px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(255,255,255,.9), 0 0 40px rgba(255,255,255,.7);
}
.hero h1 .green { color: var(--green); }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }

.btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 15px 30px; border-radius: 8px;
    font-size: 17px; font-weight: 600; cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; border: 2px solid var(--blue); box-shadow: 0 8px 20px rgba(28,134,224,.28); }
.btn-primary:hover { background: #1272c4; }
.btn-outline { background: var(--green); color: #fff; border: 2px solid var(--green); box-shadow: 0 8px 20px rgba(108,191,39,.28); }
.btn-outline:hover { background: #5aa61f; border-color: #5aa61f; }

/* ---------- Policy page: top banner + content ---------- */
.policy-banner {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    background: url('../images/bg-bnr.jpg') no-repeat center center;
    background-size: cover;
}
.policy-banner h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.policy-body { flex: 1; background: #fff; padding: 54px 20px 72px; }
.policy-content { max-width: 900px; margin: 0 auto; }
.policy-content .updated { display: block; color: var(--grey); font-size: 11px; margin-bottom: 26px; }
.policy-content .lead { font-size: 17px; }
.policy-content h2 { font-size: 21px; font-weight: 600; color: var(--navy); margin: 32px 0 12px; }
.policy-content h3 { font-size: 17px; font-weight: 600; color: var(--navy); margin: 22px 0 10px; }
.policy-content p, .policy-content li { font-size: 16px; line-height: 1.7; color: #3d4b59; }
.policy-content p  { margin-bottom: 14px; }
.policy-content ul { margin: 6px 0 16px 22px; }
.policy-content li { margin-bottom: 6px; }
.policy-content .effective { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--grey); }

@media (max-width: 768px) {
    .policy-banner { min-height: 220px; padding: 40px 18px; }
    .policy-banner h1 { font-size: 32px; }
    .policy-body { padding: 38px 20px 54px; }
}

/* ---------- Policy / content page (legacy card) ---------- */
.page { flex: 1; background: #f7fafc; padding: 50px 20px 70px; }
.page-inner {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15,44,77,.05);
    padding: 48px 54px;
}
.page-inner h1 { font-size: 34px; font-weight: 700; margin-bottom: 6px; }
.page-inner .updated { display: block; color: var(--grey); font-size: 14px; margin-bottom: 30px; }
.page-inner h2 { font-size: 21px; font-weight: 600; color: var(--navy); margin: 32px 0 12px; }
.page-inner p, .page-inner li { font-size: 16px; line-height: 1.7; color: #3d4b59; }
.page-inner p  { margin-bottom: 14px; }
.page-inner ul { margin: 6px 0 16px 22px; }
.page-inner li { margin-bottom: 6px; }
.page-inner a  { color: var(--blue); }
.page-inner a:hover { text-decoration: underline; }

/* ---------- Sign Up form ---------- */
.signup {
    flex: 1;
    padding: 44px 20px 64px;
    background:
        linear-gradient(rgba(15,44,77,.45), rgba(15,44,77,.45)),
        url('../images/bg-city.webp') no-repeat center center;
    background-size: cover;
}
.signup-card {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(15,44,77,.07);
    padding: 40px 44px 46px;
}
.signup-head { text-align: center; margin-bottom: 30px; }
.signup-head h1 { font-size: 30px; font-weight: 700; }
.signup-head p  { color: var(--grey); font-size: 15px; margin-top: 8px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field label .req { color: #e23b3b; }

.control {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    font-size: 15px;
    color: var(--navy);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.control::placeholder { color: #9aa7b2; }
.control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28,134,224,.14); }
select.control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6b7b' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 38px;
}

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.mobile-row { display: flex; gap: 12px; align-items: stretch; }
.mobile-prefix {
    display: flex; align-items: center;
    padding: 0 16px;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    background: #f2f6f9;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
}
.mobile-row .control { flex: 1; }
.btn-otp {
    border: none;
    border-radius: 8px;
    padding: 0 24px;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.btn-otp:hover { background: #1272c4; }

.captcha-box {
    width: 302px; max-width: 100%;
    height: 78px;
    border: 1px solid #d3d3d3;
    border-radius: 6px;
    background: #f9f9f9;
    display: flex; align-items: center; gap: 12px;
    padding: 0 14px;
    margin: 8px 0 20px;
    font-size: 14px; color: #3d4b59;
}
.captcha-box .cb { width: 26px; height: 26px; border: 2px solid #c1c1c1; border-radius: 3px; background:#fff; }
.captcha-box .rc { margin-left: auto; text-align: center; color:#9aa7b2; font-size: 11px; line-height: 1.2; }

.consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 14px; color: #3d4b59; line-height: 1.5; }
.consent input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }
.consent a { color: var(--blue); }
.consent a:hover { text-decoration: underline; }

.signup-actions { display: flex; justify-content: flex-end; margin-top: 26px; }
.btn-start {
    border: none;
    border-radius: 8px;
    padding: 14px 40px;
    background: var(--green);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(108,191,39,.28);
    transition: background .2s, transform .15s;
}
.btn-start:hover { background: #5aa61f; transform: translateY(-2px); }

/* ---------- Login ---------- */
.login {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background:
        linear-gradient(rgba(15,44,77,.45), rgba(15,44,77,.45)),
        url('../images/bg-city.webp') no-repeat center center;
    background-size: cover;
}
.login-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    padding: 44px 44px 40px;
}
.login-card h1 { text-align: center; font-size: 28px; font-weight: 700; color: var(--navy); margin-bottom: 30px; }
.login-card .sub { text-align: center; color: var(--grey); font-size: 14px; margin: -18px 0 26px; }
.login-card .back { text-align: center; margin-top: 18px; font-size: 14px; color: var(--grey); }
.login-card .back a { color: var(--blue); }
.login-card .back a:hover { text-decoration: underline; }

.input-group { position: relative; margin-bottom: 20px; }
.input-group .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9aa7b2; }
.input-group input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    font-size: 15px;
    color: var(--navy);
    transition: border-color .2s, box-shadow .2s;
}
.input-group input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28,134,224,.14); }
.input-group input::placeholder { color: #9aa7b2; }

.remember-me { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; font-size: 14px; color: var(--grey); cursor: pointer; }
.remember-me input { width: 16px; height: 16px; }

.btn-login {
    width: 100%;
    border: none;
    border-radius: 26px;
    padding: 14px;
    background: linear-gradient(to right, #01a4f7, #6bef23);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .2s, transform .15s;
}
.btn-login:hover { filter: brightness(1.05); transform: translateY(-2px); }
.addError { display: block; text-align: center; margin-top: 14px; font-size: 12px; color: #e23b3b; }
#captcha { margin-bottom: 20px; display: flex; justify-content: center; }

/* ---------- Scroll reveal (movement effect) ---------- */
.js .reveal,
.js .reveal-left,
.js .reveal-right,
.js .reveal-up {
    opacity: 0;
    transition: opacity .7s ease, transform .7s ease;
    will-change: opacity, transform;
}
.js .reveal,
.js .reveal-up    { transform: translateY(34px); }   /* from bottom */
.js .reveal-left  { transform: translateX(-48px); }   /* from left  */
.js .reveal-right { transform: translateX(48px); }    /* from right */

.js .reveal.in,
.js .reveal-left.in,
.js .reveal-right.in,
.js .reveal-up.in {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .js .reveal,
    .js .reveal-left,
    .js .reveal-right,
    .js .reveal-up { opacity: 1; transform: none; transition: none; }
}

/* ---------- Form status message ---------- */
.form-note {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}
.form-note.success { background: #eaf7e1; border: 1px solid #b6e39a; color: #3f7d1e; }
.form-note.error   { background: #fdeaea; border: 1px solid #f3b7b7; color: #c0392b; }

/* ---------- Footer ---------- */
.footer {
    display: flex; align-items: center; justify-content: center;
    gap: 18px; flex-wrap: wrap;
    padding: 18px 20px;
    border-top: 1px solid var(--line);
    background: #fff;
    font-size: 14px; color: var(--grey);
}
.footer img { height: 30px; width: auto; }
.footer .divider { width: 1px; height: 22px; background: var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero h1 { font-size: 46px; }
    .hero {
        background:
            linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)),
            url('../images/bg-city.webp') no-repeat center center;
        background-size: cover;
    }
}

@media (max-width: 768px) {
    .navbar { padding: 14px 22px; }
    .nav-toggle { display: flex; }

    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: flex-start; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(15,44,77,.08);
        padding: 8px 0; display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links > li { width: 100%; }
    .nav-links > li > a { display: block; padding: 12px 24px; width: 100%; }
    .nav-links > li > a.active { border-bottom: none; }

    .dropdown-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; border-radius: 0; padding: 0 0 6px; display: none;
    }
    .dropdown.open .dropdown-menu { display: block; }
    .dropdown-menu a { padding-left: 40px; }

    .hero-inner { padding: 50px 24px; }
    .hero p { font-size: 18px; }

    .page-inner { padding: 34px 24px; }
    .page-inner h1 { font-size: 27px; }
}

@media (max-width: 640px) {
    .signup-card { padding: 30px 22px 34px; }
    .row2 { grid-template-columns: 1fr; gap: 0; }
    .mobile-row { flex-wrap: wrap; }
    .mobile-row .control { flex: 1 1 100%; order: 2; }
    .btn-otp { flex: 1 1 100%; order: 3; padding: 12px; }
    .signup-actions { justify-content: stretch; }
    .btn-start { width: 100%; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 36px; }
    .hero-actions { width: 100%; }
    .btn { flex: 1; justify-content: center; }
    .footer { font-size: 12px; text-align: center; }
}
