*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --brand-primary: #0d6efd;
    --brand-light: #5c9aff;
    --brand-faint: rgba(13, 110, 253, 0.08);
    --ink: #0b1120;
    --ink-soft: #475569;
    --ink-faint: #94a3b8;
    --bg-page: #f8f9fa;
    --bg-panel: #ffffff;
    --border: #e9ecef;
    --green: #198754;
    --white: #ffffff;
    --radius: 10px;
    --shadow: 0 4px 32px rgba(13, 110, 253, 0.06);
    --shadow-lg: 0 12px 60px rgba(11, 17, 32, 0.12);
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-page);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

header {
    position: relative;
    z-index: 10;
    padding: 20px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: #0b1120;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.secure-badge svg {
    color: var(--green);
}

main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 60px 48px;
    gap: 64px;
    align-items: start;
}

.summary {
    position: sticky;
    top: 40px;
}

.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 16px;
}

.summary h1 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.summary h1 em {
    font-style: italic;
    color: var(--brand-primary);
}

.summary-desc {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
    text-align: justify;
}

.agreement-status {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}

.status-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-faint);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-icon svg {
    color: var(--brand-primary);
}

.status-text strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
}

.status-text span {
    font-size: 12px;
    color: var(--ink-soft);
}

.next-steps {
    background: var(--ink);
    border-radius: var(--radius);
    padding: 28px;
    color: var(--white);
}

.next-steps h3 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--white);
}

.step-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 0;
}

.step-list li {
    display: flex;
    gap: 14px;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    font-size: 13px;
    color: var(--white);
    margin-bottom: 2px;
}

.step-content span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

.rev-share-note {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

.rev-share-note strong {
    color: #6ea8fe;
}

.payment-panel {
    background: var(--bg-panel);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.panel-header {
    background: linear-gradient(135deg, #050a15 0%, #0b1c36 100%);
    padding: 24px 36px;
}

.amount-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0;
    margin-bottom: 6px;
}

.amount-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.amount-currency {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--brand-primary);
}

.amount-value {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.amount-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 8px;
    margin-bottom: 0;
}

.panel-body {
    padding: 36px;
}

.form-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin: 32px 0 20px 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.panel-body>.form-section-title:first-of-type {
    margin-top: 0 !important;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: #fcfcfc;
}

input:focus {
    border-color: var(--brand-primary);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.card-icons-inline {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    align-items: center;
}

.card-label-small {
    font-size: 10px;
    color: var(--ink-faint);
    margin-right: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.card-icon-img {
    width: 34px;
    height: 20px;
    border-radius: 3px;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 800;
    color: #666;
    border: 1px solid #dee2e6;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

.order-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--ink-soft);
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1.5px solid var(--border);
    margin-top: 4px;
    font-weight: 700;
    font-size: 18px;
}

.submit-btn {
    width: 100%;
    padding: 17px;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 12px;
    font-size: 15px;
}

.submit-btn:hover {
    background: #0056d2;
    transform: translateY(-1px);
}

footer {
    text-align: center;
    padding: 30px;
    font-size: 11px;
    color: var(--ink-faint);
    border-top: 1px solid var(--border);
    line-height: 1.6;
}

footer a {
    color: var(--ink-soft);
    text-decoration: none;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 4px 0;
    cursor: pointer;
}

.form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: #fcfcfc;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.form-check-input:checked {
    background: var(--brand-primary) !important;
    background-image: none !important;
    border-color: var(--brand-primary);
}

.form-check-input:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    border-color: var(--brand-primary);
}

.form-check-label {
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 500;
    line-height: 1.4;
    user-select: none;
    margin-bottom: 0;
    cursor: pointer;
}

.form-check-label a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.form-check-label a:hover {
    text-decoration: underline;
}

.form-check-input.inputsError {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

@media (max-width: 992px) {
    main {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 40px;
    }

    .summary {
        position: static;
    }

    header {
        padding: 15px 20px;
    }
}

@media (max-width: 600px) {

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .summary h1 {
        font-size: 30px;
    }

    .summary-desc {
        text-align: left;
    }
}

.inputsError {
    border-color: #dc3545 !important;
}

.custom-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.card-image-container {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

#nmi_error {
    color: #dc3545;
    font-weight: 600;
}

#message {
    display: none;
    background-color: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    font-weight: 500;
}

#message:not(:empty) {
    margin-bottom: 1.5rem;
    display: block;
}