/* =========================================================
   VANTREX GLOBAL
   TESLA PAYMENT PAGE
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {

    --bg: #050914;
    --bg-secondary: #080e1c;
    --bg-card: #0b1222;
    --bg-card-soft: #0e1729;

    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);

    --text: #f4f7fb;
    --text-soft: #aeb8c8;
    --text-muted: #778297;

    --gold: #f5b942;
    --gold-light: #ffd878;

    --blue: #1769ff;
    --blue-light: #4b8cff;

    --green: #2ed47a;
    --red: #ff5d6c;

    --radius: 18px;
    --radius-small: 12px;

    --container: 1180px;

    --shadow:
        0 24px 70px rgba(0, 0, 0, 0.35);

}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 15% 5%,
            rgba(23, 105, 255, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 10%,
            rgba(245, 185, 66, 0.06),
            transparent 28%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        "Inter",
        Arial,
        sans-serif;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

}


a {
    color: inherit;
    text-decoration: none;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   HEADER
========================================================= */

.payment-header {

    position: sticky;

    top: 0;

    z-index: 100;

    width: 100%;

    background:
        rgba(5, 9, 20, 0.88);

    border-bottom:
        1px solid var(--border);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

}


.nav-container {

    width: min(
        calc(100% - 40px),
        var(--container)
    );

    min-height: 76px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

}


/* =========================================================
   LOGO
========================================================= */

.tesla-logo {

    display: inline-flex;

    align-items: center;

    gap: 11px;

    white-space: nowrap;

}


.logo-mark {

    width: 38px;

    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--gold),
            var(--gold-light)
        );

    color: #111;

    font-size: 21px;

    font-weight: 900;

    box-shadow:
        0 8px 25px rgba(245, 185, 66, 0.18);

}


.logo-name {

    color: var(--text);

    font-size: 17px;

    font-weight: 700;

    letter-spacing: -0.3px;

}


.logo-name strong {

    color: var(--gold);

    font-weight: 800;

}


.back-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--text-soft);

    font-size: 13px;

    font-weight: 600;

    transition:
        color 0.2s ease,
        transform 0.2s ease;

}


.back-link:hover {

    color: var(--gold);

    transform: translateX(-3px);

}


/* =========================================================
   PAGE
========================================================= */

.payment-page {

    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin: 0 auto;

    padding:
        72px
        0
        90px;

}


/* =========================================================
   INTRO
========================================================= */

.payment-intro {

    margin-bottom: 46px;

}


.intro-inner {

    max-width: 760px;

}


.section-label {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 15px;

    color: var(--gold);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.8px;

}


.section-label::before {

    content: "";

    width: 25px;

    height: 1px;

    background: var(--gold);

}


.payment-intro h1 {

    max-width: 720px;

    color: var(--text);

    font-size: clamp(
        38px,
        5vw,
        62px
    );

    line-height: 1.05;

    letter-spacing: -2.8px;

    font-weight: 800;

}


.payment-intro h1 span {

    display: block;

    color: var(--gold);

}


.payment-intro p {

    max-width: 680px;

    margin-top: 20px;

    color: var(--text-soft);

    font-size: 15px;

    line-height: 1.8;

}


/* =========================================================
   MAIN TWO-COLUMN LAYOUT
========================================================= */

.payment-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(300px, 0.75fr);

    align-items: start;

    gap: 28px;

}


/* =========================================================
   FORM CARD
========================================================= */

.payment-form-card {

    min-width: 0;

    padding: 34px;

    background:
        linear-gradient(
            145deg,
            rgba(13, 21, 38, 0.98),
            rgba(8, 14, 28, 0.98)
        );

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

}


/* =========================================================
   FORM SECTION
========================================================= */

.form-section {

    padding: 30px 0;

    border-bottom:
        1px solid var(--border);

}


.form-section:first-child {

    padding-top: 0;

}


.form-section-heading {

    display: flex;

    align-items: flex-start;

    gap: 15px;

    margin-bottom: 25px;

}


.section-number {

    flex: 0 0 auto;

    width: 38px;

    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 11px;

    background:
        rgba(245, 185, 66, 0.09);

    border:
        1px solid rgba(245, 185, 66, 0.25);

    color: var(--gold);

    font-size: 11px;

    font-weight: 800;

}


.form-section-heading h2 {

    color: var(--text);

    font-size: 18px;

    line-height: 1.3;

    font-weight: 700;

    letter-spacing: -0.4px;

}


.form-section-heading p {

    margin-top: 5px;

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.6;

}


/* =========================================================
   FORM GRID
========================================================= */

.form-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

}


.form-group {

    min-width: 0;

}


.full-width {

    grid-column: 1 / -1;

}


/* =========================================================
   LABELS
========================================================= */

.form-group label {

    display: block;

    margin-bottom: 8px;

    color: #dbe2ed;

    font-size: 12px;

    font-weight: 600;

}


.form-group label span {

    color: var(--gold);

}


/* =========================================================
   INPUTS
========================================================= */

.form-group input,
.form-group textarea,
.form-group select {

    width: 100%;

    border:
        1px solid var(--border-light);

    border-radius: 11px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.035);

    color: var(--text);

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;

}


.form-group input,
.form-group select {

    min-height: 50px;

    padding:
        0 15px;

}


.form-group textarea {

    min-height: 125px;

    padding: 14px 15px;

    resize: vertical;

    line-height: 1.6;

}


.form-group input::placeholder,
.form-group textarea::placeholder {

    color: #5f6b80;

}


.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {

    border-color:
        rgba(255, 255, 255, 0.18);

}


.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {

    border-color:
        rgba(245, 185, 66, 0.65);

    background:
        rgba(245, 185, 66, 0.025);

    box-shadow:
        0 0 0 3px rgba(245, 185, 66, 0.08);

}


/* =========================================================
   SELECT
========================================================= */

.form-group select {

    appearance: none;

    -webkit-appearance: none;

    padding-right: 44px;

    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            #8e9ab0 50%
        ),
        linear-gradient(
            135deg,
            #8e9ab0 50%,
            transparent 50%
        );

    background-position:
        calc(100% - 19px) 21px,
        calc(100% - 13px) 21px;

    background-size:
        6px 6px,
        6px 6px;

    background-repeat: no-repeat;

}


.form-group select option {

    background: #0b1222;

    color: var(--text);

}


/* =========================================================
   FIELD NOTE
========================================================= */

.field-note {

    display: block;

    margin-top: 7px;

    color: var(--text-muted);

    font-size: 11px;

    line-height: 1.55;

}


/* =========================================================
   VEHICLE SELECTION
========================================================= */

.vehicle-selection {

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.025);

}


.vehicle-summary {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

}


.vehicle-summary-item {

    min-width: 0;

    padding: 18px;

    border-right:
        1px solid var(--border);

}


.vehicle-summary-item:last-child {

    border-right: 0;

}


.vehicle-summary-item span {

    display: block;

    margin-bottom: 7px;

    color: var(--text-muted);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.8px;

    text-transform: uppercase;

}


.vehicle-summary-item strong {

    display: block;

    overflow: hidden;

    color: var(--text);

    font-size: 14px;

    font-weight: 700;

    text-overflow: ellipsis;

    white-space: nowrap;

}


.vehicle-summary-item:last-child strong {

    color: var(--gold);

}


/* =========================================================
   PAYMENT METHODS
========================================================= */

.payment-methods {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

}


.payment-method {

    position: relative;

    display: block;

    cursor: pointer;

}


.payment-method input {

    position: absolute;

    width: 1px;

    height: 1px;

    opacity: 0;

}


.method-content {

    min-height: 76px;

    padding: 13px;

    display: flex;

    align-items: center;

    gap: 11px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.025);

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;

}


.payment-method:hover .method-content {

    border-color:
        rgba(245, 185, 66, 0.35);

    transform: translateY(-2px);

}


.payment-method input:checked + .method-content {

    border-color: var(--gold);

    background:
        rgba(245, 185, 66, 0.08);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15);

}


.method-icon {

    width: 38px;

    height: 38px;

    flex: 0 0 38px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.06);

    color: var(--gold);

    font-size: 17px;

    font-weight: 800;

}


.method-content strong {

    display: block;

    color: var(--text);

    font-size: 12px;

    font-weight: 700;

}


.method-content small {

    display: block;

    margin-top: 2px;

    color: var(--text-muted);

    font-size: 10px;

}


/* =========================================================
   PAYMENT ADDRESS
========================================================= */

.payment-address-box {

    margin-top: 18px;

    padding: 17px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    border:
        1px solid rgba(23, 105, 255, 0.25);

    border-radius: 13px;

    background:
        rgba(23, 105, 255, 0.06);

}


.payment-address-content {

    min-width: 0;

}


.payment-address-label {

    display: block;

    margin-bottom: 6px;

    color: var(--blue-light);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.4px;

}


.payment-address-content strong {

    display: block;

    overflow-wrap: anywhere;

    color: var(--text);

    font-family:
        "Courier New",
        monospace;

    font-size: 11px;

    line-height: 1.6;

    font-weight: 600;

}


.copy-button {

    flex: 0 0 auto;

    min-height: 38px;

    padding:
        0 16px;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.06);

    color: var(--text);

    font-size: 11px;

    font-weight: 700;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;

}


.copy-button:hover {

    border-color:
        rgba(245, 185, 66, 0.4);

    background:
        rgba(245, 185, 66, 0.1);

    color: var(--gold-light);

}


/* =========================================================
   PAYMENT WARNING
========================================================= */

.payment-warning {

    margin-top: 13px;

    padding: 13px 15px;

    border-left:
        2px solid var(--gold);

    background:
        rgba(245, 185, 66, 0.04);

}


.payment-warning strong {

    display: block;

    margin-bottom: 3px;

    color: var(--gold-light);

    font-size: 11px;

}


.payment-warning p {

    color: var(--text-muted);

    font-size: 10px;

    line-height: 1.6;

}


/* =========================================================
   CONFIRMATION
========================================================= */

.confirmation-box {

    margin-top: 26px;

    padding: 17px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.025);

}


.confirmation-label {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    cursor: pointer;

}


.confirmation-label input {

    position: absolute;

    opacity: 0;

    pointer-events: none;

}


.confirmation-check {

    position: relative;

    width: 19px;

    height: 19px;

    flex: 0 0 19px;

    margin-top: 1px;

    border:
        1px solid rgba(255, 255, 255, 0.2);

    border-radius: 5px;

    background:
        rgba(255, 255, 255, 0.03);

}


.confirmation-label input:checked + .confirmation-check {

    border-color: var(--gold);

    background: var(--gold);

}


.confirmation-label input:checked + .confirmation-check::after {

    content: "✓";

    position: absolute;

    inset: 0;

    display: grid;

    place-items: center;

    color: #111;

    font-size: 12px;

    font-weight: 900;

}


.confirmation-text {

    color: var(--text-soft);

    font-size: 11px;

    line-height: 1.7;

}


/* =========================================================
   FORM MESSAGE
========================================================= */

.form-message {

    margin-top: 18px;

    padding: 13px 15px;

    border-radius: 10px;

    font-size: 12px;

    line-height: 1.6;

}


.form-message.success {

    border:
        1px solid rgba(46, 212, 122, 0.25);

    background:
        rgba(46, 212, 122, 0.08);

    color: #8df0b8;

}


.form-message.error {

    border:
        1px solid rgba(255, 93, 108, 0.25);

    background:
        rgba(255, 93, 108, 0.08);

    color: #ff9da8;

}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.submit-button {

    width: 100%;

    min-height: 55px;

    margin-top: 25px;

    border: 0;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--gold),
            var(--gold-light)
        );

    color: #101010;

    font-size: 13px;

    font-weight: 800;

    box-shadow:
        0 12px 30px rgba(245, 185, 66, 0.14);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;

}


.submit-button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 16px 35px rgba(245, 185, 66, 0.2);

}


.submit-button:active {

    transform: translateY(0);

}


.submit-button:disabled {

    cursor: not-allowed;

    opacity: 0.55;

    transform: none;

}


/* =========================================================
   SECURE NOTE
========================================================= */

.secure-note {

    margin-top: 12px;

    text-align: center;

    color: var(--text-muted);

    font-size: 10px;

}


/* =========================================================
   RIGHT SIDEBAR
========================================================= */

.payment-summary {

    position: sticky;

    top: 102px;

    display: flex;

    flex-direction: column;

    gap: 18px;

}


/* =========================================================
   SUMMARY CARD
========================================================= */

.summary-card,
.process-card {

    padding: 24px;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(13, 21, 38, 0.98),
            rgba(8, 14, 28, 0.98)
        );

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.25);

}


.summary-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

}


.summary-label {

    color: var(--gold);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.5px;

}


.summary-status {

    padding:
        5px 8px;

    border:
        1px solid rgba(245, 185, 66, 0.2);

    border-radius: 6px;

    background:
        rgba(245, 185, 66, 0.07);

    color: var(--gold-light);

    font-size: 8px;

    font-weight: 700;

}


.summary-vehicle {

    margin-top: 25px;

}


.summary-vehicle h2 {

    color: var(--text);

    font-size: 25px;

    line-height: 1.2;

    letter-spacing: -0.7px;

}


.summary-variant {

    margin-top: 6px;

    color: var(--text-muted);

    font-size: 12px;

}


.summary-price-wrap {

    margin-top: 25px;

    padding: 18px;

    border-radius: 12px;

    background:
        rgba(245, 185, 66, 0.055);

    border:
        1px solid rgba(245, 185, 66, 0.12);

}


.summary-price-wrap span {

    display: block;

    color: var(--text-muted);

    font-size: 9px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.8px;

}


.summary-price-wrap strong {

    display: block;

    margin-top: 5px;

    color: var(--gold-light);

    font-size: 25px;

    letter-spacing: -0.8px;

}


/* =========================================================
   SUMMARY DIVIDER
========================================================= */

.summary-divider {

    height: 1px;

    margin: 22px 0;

    background:
        var(--border);

}


/* =========================================================
   SUMMARY ROWS
========================================================= */

.summary-details {

    display: flex;

    flex-direction: column;

    gap: 15px;

}


.summary-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


.summary-row span {

    color: var(--text-muted);

    font-size: 11px;

}


.summary-row strong {

    color: var(--text-soft);

    font-size: 11px;

    font-weight: 600;

    text-align: right;

}


/* =========================================================
   SUMMARY NOTE
========================================================= */

.summary-note {

    display: flex;

    align-items: flex-start;

    gap: 10px;

}


.summary-note-icon {

    width: 23px;

    height: 23px;

    flex: 0 0 23px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        rgba(46, 212, 122, 0.1);

    color: var(--green);

    font-size: 10px;

    font-weight: 900;

}


.summary-note p {

    color: var(--text-muted);

    font-size: 10px;

    line-height: 1.7;

}


/* =========================================================
   PROCESS CARD
========================================================= */

.process-card .summary-label {

    display: block;

    margin-bottom: 22px;

}


.process-step {

    position: relative;

    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding-bottom: 20px;

}


.process-step:last-child {

    padding-bottom: 0;

}


.process-step:not(:last-child)::after {

    content: "";

    position: absolute;

    top: 29px;

    left: 12px;

    width: 1px;

    height: calc(100% - 15px);

    background:
        rgba(255, 255, 255, 0.09);

}


.process-number {

    position: relative;

    z-index: 1;

    width: 25px;

    height: 25px;

    flex: 0 0 25px;

    display: grid;

    place-items: center;

    border:
        1px solid rgba(245, 185, 66, 0.22);

    border-radius: 50%;

    background: var(--bg-card);

    color: var(--gold);

    font-size: 8px;

    font-weight: 800;

}


.process-step strong {

    display: block;

    color: var(--text);

    font-size: 11px;

    font-weight: 700;

}


.process-step p {

    margin-top: 3px;

    color: var(--text-muted);

    font-size: 9px;

    line-height: 1.5;

}


/* =========================================================
   FOOTER
========================================================= */

.payment-footer {

    border-top:
        1px solid var(--border);

    background:
        rgba(0, 0, 0, 0.18);

}


.footer-container {

    width: min(
        calc(100% - 40px),
        var(--container)
    );

    min-height: 80px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


.footer-container p {

    color: var(--text-muted);

    font-size: 10px;

}


.footer-links {

    display: flex;

    align-items: center;

    gap: 20px;

}


.footer-links a {

    color: var(--text-muted);

    font-size: 10px;

    transition: color 0.2s ease;

}


.footer-links a:hover {

    color: var(--gold);

}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1000px) {

    .payment-layout {

        grid-template-columns: 1fr;

    }


    .payment-summary {

        position: static;

        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        align-items: start;

    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 700px) {

    .nav-container {

        width: min(
            calc(100% - 28px),
            var(--container)
        );

        min-height: 68px;

    }


    .payment-page {

        width: min(
            calc(100% - 28px),
            var(--container)
        );

        padding:
            45px
            0
            60px;

    }


    .payment-intro {

        margin-bottom: 32px;

    }


    .payment-intro h1 {

        font-size: 38px;

        letter-spacing: -1.8px;

    }


    .payment-intro p {

        font-size: 13px;

    }


    .payment-form-card {

        padding: 22px 18px;

        border-radius: 15px;

    }


    .form-grid {

        grid-template-columns: 1fr;

        gap: 17px;

    }


    .full-width {

        grid-column: auto;

    }


    .form-section {

        padding: 25px 0;

    }


    .form-section-heading {

        gap: 11px;

    }


    .form-section-heading h2 {

        font-size: 16px;

    }


    .form-section-heading p {

        font-size: 11px;

    }


    .section-number {

        width: 34px;

        height: 34px;

        font-size: 10px;

    }


    .vehicle-summary {

        grid-template-columns: 1fr;

    }


    .vehicle-summary-item {

        border-right: 0;

        border-bottom:
            1px solid var(--border);

    }


    .vehicle-summary-item:last-child {

        border-bottom: 0;

    }


    .payment-methods {

        grid-template-columns: 1fr;

    }


    .method-content {

        min-height: 65px;

    }


    .payment-address-box {

        align-items: flex-start;

        flex-direction: column;

    }


    .copy-button {

        width: 100%;

    }


    .payment-summary {

        grid-template-columns: 1fr;

    }


    .summary-card,
    .process-card {

        padding: 20px;

    }


    .footer-container {

        min-height: auto;

        padding: 22px 0;

        flex-direction: column;

        align-items: flex-start;

    }


    .footer-links {

        gap: 15px;

        flex-wrap: wrap;

    }

}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .logo-name {

        font-size: 15px;

    }


    .logo-mark {

        width: 34px;

        height: 34px;

        font-size: 18px;

    }


    .back-link {

        font-size: 11px;

    }


    .payment-intro h1 {

        font-size: 32px;

    }


    .payment-form-card {

        padding:
            20px
            15px;

    }


    .form-group input,
    .form-group select {

        min-height: 48px;

        font-size: 13px;

    }


    .form-group textarea {

        font-size: 13px;

    }


    .summary-price-wrap strong {

        font-size: 22px;

    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {

    outline:
        2px solid var(--gold);

    outline-offset: 3px;

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        transition: none !important;

        animation: none !important;

    }

}