:root {
    --ink: #0b1f3b;
    --ink-2: #123556;
    --sand: #f4eee6;
    --gold: #e0b04a;
    --teal: #0f8a7f;
    --sky: #e6eef4;
    --card: #fffaf2;
    --line: #e3e9ef;
    --shadow-soft: 0 16px 40px rgba(11, 31, 59, 0.12);
    --shadow-tight: 0 10px 26px rgba(11, 31, 59, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top, #f8fbff 0%, #edf2f6 45%, #e9eef2 100%);
}

h1,
h2,
h3,
.main-title,
.hero-title,
.card-title {
    font-family: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
    letter-spacing: -0.02em;
}

.main-bg {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top left, #fdf6ea 0%, #f3f6fb 45%, #e8eef4 100%);
}

.main-bg::before,
.main-bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.8;
}

.main-bg::before {
    width: 520px;
    height: 520px;
    top: -180px;
    right: -160px;
    background: radial-gradient(circle, rgba(224, 176, 74, 0.4) 0%, rgba(224, 176, 74, 0) 68%);
}

.main-bg::after {
    width: 420px;
    height: 420px;
    bottom: -200px;
    left: -140px;
    background: radial-gradient(circle, rgba(15, 138, 127, 0.35) 0%, rgba(15, 138, 127, 0) 70%);
}

.main-header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.8rem;
    box-shadow: var(--shadow-tight);
    padding: 1.6rem 2.8rem 1.4rem 2.8rem;
    margin-bottom: 2.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    animation: rise 0.7s ease both;
}

.main-logo {
    height: 2.6rem;
    width: auto;
    border-radius: 1rem;
    background: #fff;
    padding: 0.35rem 0.6rem;
    box-shadow: 0 8px 20px rgba(11, 31, 59, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-logo:hover {
    transform: translateY(-2px) rotate(-2deg);
    box-shadow: 0 14px 30px rgba(11, 31, 59, 0.22);
}

.main-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--ink);
}

.main-subtitle {
    font-size: 1.1rem;
    color: #3b4a5e;
    font-weight: 500;
}

.hero-section {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 242, 232, 0.95) 100%);
    border-radius: 2rem;
    box-shadow: var(--shadow-tight);
    padding: 2.4rem 2rem;
    max-width: 44rem;
    border: 1px solid rgba(224, 220, 210, 0.7);
    animation: rise 0.8s ease both;
}

.hero-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--ink);
}

.hero-desc {
    color: #3b4a5e;
    font-size: 1.08rem;
}


.payment-options-row {
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(15, 138, 127, 0.15);
}

.payment-card {
    position: relative;
    border-radius: 1.6rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    min-height: 20rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(160deg, #fff 0%, #f7f2ea 100%);
    padding: 1.8rem 1.4rem 1.4rem 1.4rem;
    overflow: hidden;
    animation: rise 0.9s ease both;
}

.payment-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--teal));
}

.payment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(11, 31, 59, 0.18);
}

.payment-card .card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
}

.payment-card .card-text {
    color: #4c5b6e;
    font-size: 1.05rem;
}

.payment-card .payment-logo {
    height: 40px;
    margin-bottom: 0.8rem;
}

.payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pay-logo-icon {
    max-height: 1.7rem;
    max-width: 3.5rem;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.2) brightness(1.08);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.pay-logo-icon:hover {
    filter: none;
    transform: translateY(-2px) scale(1.05);
}

.footer {
    background: transparent;
    color: #4a5a6d;
    font-size: 1rem;
    font-weight: 500;
    margin-top: auto;
}

.footer-text {
    opacity: 0.75;
}

.card {
    border-radius: 1.4rem;
    border: 1px solid rgba(227, 233, 239, 0.85);
}

.card .form-label {
    font-weight: 600;
    color: #405066;
}

.card .text-muted {
    font-size: 0.98rem;
}

.card .form-control,
.card .form-select {
    border-radius: 0.9rem;
    border: 1px solid rgba(170, 183, 196, 0.6);
    padding: 0.7rem 0.85rem;
}

.card .form-control:focus,
.card .form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 0.2rem rgba(15, 138, 127, 0.18);
}

.btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.65rem 1.2rem;
}

.btn-primary {
    background: var(--ink);
    border: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--ink-2);
}

.btn-success {
    background: var(--teal);
    border: none;
}

.btn-success:hover,
.btn-success:focus {
    background: #117a70;
}

.btn-info {
    background: var(--gold);
    border: none;
    color: #1f1a12;
}

.btn-info:hover,
.btn-info:focus {
    background: #c99633;
    color: #1f1a12;
}

.card a.text-decoration-none {
    color: var(--ink);
    font-size: 0.98rem;
}

.card a.text-decoration-none:hover {
    text-decoration: underline;
}

.paystack-card {
    max-width: 420px;
    width: 100%;
    background: linear-gradient(160deg, #fff 0%, #f7f2ea 100%);
}

.paystack-logo {
    height: 52px;
    margin-bottom: 0.7rem;
}

.paystack-body {
    background: radial-gradient(circle at top, #f8fbff 0%, #eef2f6 45%, #e6ecf2 100%);
}

.paystack-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 3rem 1.5rem;
}

.paystack-shell {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(227, 233, 239, 0.7);
    border-radius: 2rem;
    box-shadow: var(--shadow-soft);
    padding: 2.4rem;
    position: relative;
    overflow: hidden;
}

.paystack-shell::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--gold), var(--teal));
}

.paystack-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.paystack-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.paystack-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
}

.paystack-subtitle {
    color: #4b5a6d;
}

.paystack-back {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(18, 53, 86, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.paystack-back:hover {
    background: rgba(11, 31, 59, 0.06);
    color: var(--ink);
}

.paystack-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.paystack-form-card {
    background: #fff;
    border-radius: 1.6rem;
    border: 1px solid rgba(227, 233, 239, 0.8);
    padding: 1.8rem;
    box-shadow: var(--shadow-tight);
}

.paystack-form-header {
    margin-bottom: 1.4rem;
}

.zelle-instructions {
    background: linear-gradient(120deg, #fff3db 0%, #f4efe7 100%);
    border: 1px solid rgba(224, 176, 74, 0.45);
    border-radius: 1.5rem;
    color: #3a2d1b;
    font-size: 1.05rem;
    font-weight: 500;
    box-shadow: var(--shadow-tight);
}

.zelle-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #7b4e12;
}

.zelle-note {
    font-size: 0.98rem;
    color: #4c3b22;
    margin-top: 0.4rem;
}

body.bg-light {
    background: radial-gradient(circle at top, #f8fbff 0%, #edf2f6 45%, #e9eef2 100%);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thanks-container {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 540px;
    margin: 0 auto;
}

.thanks-icon {
    margin-bottom: 1.8rem;
    animation: rise 0.6s ease both;
}

.thanks-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.8rem;
    animation: rise 0.7s ease both;
}

.thanks-subtitle {
    font-size: 1.1rem;
    color: #4a5a6d;
    margin-bottom: 2rem;
    animation: rise 0.8s ease both;
}

.thanks-reference {
    background: linear-gradient(120deg, rgba(15, 138, 127, 0.08) 0%, rgba(224, 176, 74, 0.08) 100%);
    border: 1px solid rgba(15, 138, 127, 0.2);
    border-radius: 1.2rem;
    padding: 1.4rem 1.6rem;
    margin-bottom: 2rem;
    animation: rise 0.9s ease both;
}

.thanks-reference-label {
    display: block;
    font-size: 0.9rem;
    color: #5a6a7d;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.thanks-reference-value {
    display: block;
    font-size: 1.15rem;
    color: var(--ink);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.thanks-btn {
    padding: 0.75rem 2.5rem;
    font-size: 1.05rem;
    animation: rise 1s ease both;
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        padding: 1.4rem 1.2rem 1.2rem 1.2rem;
        gap: 0.8rem;
    }

    .main-title {
        font-size: 2rem;
        text-align: center;
    }

    .main-subtitle {
        text-align: center;
    }

    .hero-section {
        padding: 2rem 1.2rem;
    }


    .payment-card {
        min-height: 15rem;
    }

    .paystack-page {
        padding: 2.5rem 1.2rem;
    }

    .paystack-shell {
        padding: 2rem 1.6rem;
    }

    .paystack-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .paystack-brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .paystack-back {
        align-self: flex-start;
    }

}

@media (max-width: 480px) {
    .main-logo {
        height: 2.1rem;
    }

    .main-title {
        font-size: 1.7rem;
    }

    .hero-title {
        font-size: 1.55rem;
    }

    .pay-logo-icon {
        max-height: 1.1rem;
        max-width: 2.2rem;
    }

    .paystack-shell {
        padding: 1.6rem 1.2rem;
    }

    .paystack-title {
        font-size: 1.7rem;
    }

    .paystack-form-card {
        padding: 1.4rem;
    }

    .thanks-container {
        padding: 2rem 1.2rem;
    }

    .thanks-title {
        font-size: 1.8rem;
    }

    .thanks-subtitle {
        font-size: 1rem;
    }
}
