*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857;
    color: #333;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #337ab7;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #23527c;
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 970px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-top: 1px solid #9fc6e4;
    border-bottom: 3px solid #2f7fc1;
    position: relative;
    z-index: 10;
}

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

.logo {
    display: block;
    width: 90px;
    height: 70px;
    margin-left: 0;
}

.logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav > ul {
    display: flex;
    align-items: center;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    display: block;
    padding: 30px 11px;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1px;
}

.main-nav > ul > li:last-child > a {
    padding-right: 10px;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.open > a {
    color: #2f7fc1;
    text-decoration: none;
}

.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 3px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transform: scale(0.75);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    padding: 5px 0 !important;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 6px 20px;
    color: #333;
    font-size: 13px;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #2f7fc1;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 9px 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #555;
    border-radius: 1px;
}

.nav-toggle span + span {
    margin-top: 4px;
}

/* ---------- Banner ---------- */
.banner {
    position: relative;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 18% 140% at 2% 50%, rgba(20, 16, 12, 0.95) 0%, rgba(20, 16, 12, 0) 100%),
        radial-gradient(ellipse 22% 120% at 9% 30%, rgba(95, 80, 60, 0.75) 0%, rgba(95, 80, 60, 0) 100%),
        radial-gradient(ellipse 30% 90% at 35% 60%, rgba(110, 150, 50, 0.9) 0%, rgba(110, 150, 50, 0) 100%),
        radial-gradient(ellipse 30% 90% at 70% 40%, rgba(120, 160, 55, 0.9) 0%, rgba(120, 160, 55, 0) 100%),
        linear-gradient(90deg, #1c1813 0%, #3d342a 5%, #2a3a1c 13%, #4f7027 22%, #66902f 45%, #5a8429 65%, #6a9634 85%, #4f7524 100%);
}

/* fence / screen texture */
.banner-overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(215, 235, 160, 0.55) 0.9px, transparent 1.6px),
        radial-gradient(circle, rgba(40, 60, 20, 0.35) 0.9px, transparent 1.6px);
    background-size: 7px 7px, 7px 7px;
    background-position: 0 0, 3.5px 3.5px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 14%, #000 26%, #000 100%);
            mask-image: linear-gradient(90deg, transparent 0%, transparent 14%, #000 26%, #000 100%);
    pointer-events: none;
}

.banner h1 {
    position: relative;
    margin: 0;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 41px;
    line-height: 1.12;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* ---------- Sign In ---------- */
.signin {
    flex: 1 0 auto;
    padding: 50px 15px 74px;
}

.signin-box {
    width: 100%;
    max-width: 318px;
    margin: 0 auto;
}

.signin-box h2 {
    margin: 0 0 8px;
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    color: #111;
}

.signin-box input {
    display: block;
    width: 100%;
    height: 26px;
    margin-bottom: 11px;
    padding: 3px 8px;
    font-family: inherit;
    font-size: 11px;
    color: #555;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.signin-box input::placeholder {
    color: #999;
}

.signin-box input:focus {
    outline: 0;
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.signin-box input.error {
    border-color: #a94442;
}

.btn-signin {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    background: #337ab7;
    border: 1px solid #2e6da4;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.btn-signin:hover,
.btn-signin:focus {
    background: #286090;
    border-color: #204d74;
    outline: 0;
}

.signin-links {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 11px;
}

.signin-links a {
    color: #337ab7;
}

/* ---------- Billing ---------- */
.billing {
    flex: 1 0 auto;
    padding: 40px 15px 64px;
}

.billing-box {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.billing-box h2 {
    margin: 0 0 4px;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    color: #111;
}

.billing-sub {
    margin: 0 0 24px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

.form-section {
    margin: 0 0 22px;
    padding: 18px 20px 20px;
    border: 1px solid #e3e3e3;
    border-radius: 5px;
    background: #fafafa;
}

.form-section legend {
    padding: 0 8px;
    font-size: 15px;
    font-weight: 500;
    color: #2f7fc1;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
}

.form-group .optional {
    color: #999;
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    height: 38px;
    padding: 6px 10px;
    font-family: inherit;
    font-size: 13px;
    color: #555;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.form-group input[readonly] {
    background: #eee;
    color: #777;
}

.form-group textarea {
    height: auto;
    min-height: 70px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 0;
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #a94442;
    box-shadow: inset 0 1px 1px rgba(169, 68, 66, 0.2);
}

.card-brands {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.card-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    color: #fff;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.card-brand.visa { background: #1a1f71; }
.card-brand.mc   { background: #eb001b; }
.card-brand.amex { background: #2e77bc; font-style: normal; }

.billing .btn-signin {
    max-width: 320px;
    margin: 6px auto 0;
}

.secure-note {
    margin: 14px 0 0;
    text-align: center;
    font-size: 12px;
    color: #777;
}

.secure-note .lock {
    margin-right: 4px;
}

/* ---------- Thank You ---------- */
.thankyou {
    flex: 1 0 auto;
    padding: 60px 15px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thankyou-box {
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.thankyou-check {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
}

.thankyou-check svg {
    width: 100%;
    height: 100%;
    display: block;
}

.thankyou-box h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 500;
    color: #111;
}

.thankyou-lead {
    margin: 0 0 6px;
    font-size: 17px;
    color: #333;
}

.thankyou-sub {
    margin: 0 0 26px;
    font-size: 14px;
    color: #777;
}

.thankyou-btn {
    display: inline-block;
    width: auto;
    max-width: none;
    padding: 0 28px;
    line-height: 48px;
    text-decoration: none;
}

.thankyou-btn:hover,
.thankyou-btn:focus {
    color: #fff;
    text-decoration: none;
}

/* ---------- Loading overlay ---------- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    z-index: 9999;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-overlay p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #d5e5f2;
    border-top-color: #337ab7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background: #333;
    color: #8a8a8a;
    text-align: center;
    padding: 92px 15px 18px;
    font-size: 11px;
}

.site-footer p {
    margin: 0;
}

.footer-links a {
    color: #8a8a8a;
}

.footer-links a:hover {
    color: #ccc;
    text-decoration: none;
}

.footer-links .sep {
    margin: 0 10px;
    color: #777;
}

.footer-note {
    margin-top: 16px !important;
    font-size: 10px;
    color: #8a8a8a;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav > ul {
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid #eee;
    }

    .main-nav > ul > li > a {
        padding: 12px 5px;
    }

    .has-dropdown:hover .dropdown-menu {
        display: none;
    }

    .has-dropdown.open .dropdown-menu {
        display: block;
        position: static;
        border: 0;
        box-shadow: none;
    }

    .banner {
        height: auto;
        padding: 22px 15px;
    }

    .banner h1 {
        font-size: 24px;
    }

    .footer-links .sep {
        margin: 0 5px;
    }

    .site-footer {
        padding-top: 50px;
        line-height: 2;
    }
}
