:root {
    --brand-primary: #003e5f;
    --brand-accent: #ffe548;
    --brand-light: #ffffff;
}

@font-face {
    font-family: "Pinar";
    src: url("../fonts/Pinar-Regular.woff2") format("woff2"),
        url("../fonts/Pinar-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Pinar";
    src: url("../fonts/Pinar-Bold.woff2") format("woff2"),
        url("../fonts/Pinar-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Pinar", "Vazirmatn", "Tahoma", sans-serif;
    min-height: 100vh;
    color: var(--brand-light);
    background-color: #0a2a3d;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../images/background.jpg");
    background-size: cover;
    background-position: bottom;
    filter: blur(6px);
    transform: scale(1.02);
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 62, 95, 0.85), rgba(6, 32, 49, 0.75));
    z-index: -1;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero-section {
    padding: 4rem 0 2.5rem;
}

.hero-content {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-content {
        grid-template-columns: 1.4fr 1fr;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 229, 72, 0.2);
    color: var(--brand-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-weight: 800;
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    max-width: 32rem;
    margin-bottom: 0;
}

.hero-info {
    display: grid;
    gap: 1rem;
}

.hero-aside {
    display: grid;
    gap: 1rem;
}

.info-card {
    background: rgba(0, 62, 95, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    color: var(--brand-light);
}

.poster-card {
    text-align: center;
}

.poster-card img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.poster-caption {
    font-size: 0.85rem;
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.info-card.final-card {
    padding: 2rem 2.25rem;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 2rem;
}

.final-card.final-card-light {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(15, 23, 42, 0.12);
    color: #1f2937;
}

.final-card.final-card-light .final-amount {
    color: var(--brand-primary);
}

.final-card.final-card-light #amountDetails {
    color: rgba(31, 41, 55, 0.7);
}

.final-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-accent);
    margin-bottom: 0.5rem;
}

.form-section {
    padding-bottom: 4rem;
}

.card {
    border-radius: 1.5rem;
    color: #1f2937;
}

.card-body {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 1.5rem;
}

.form-alert {
    border-radius: 0.9rem;
    border: none;
}

.form-label,
.form-check-label,
.form-text {
    color: #1f2937;
}

.form-control,
.form-select {
    border-radius: 0.9rem;
    border-color: #d1d5db;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.15rem rgba(0, 62, 95, 0.15);
}

.btn-accent {
    background: var(--brand-accent);
    color: #1f2937;
    border: none;
    border-radius: 999px;
    font-weight: 700;
}

.btn-accent:hover {
    background: #ffef76;
    color: #1f2937;
}

.member-card {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
    background-color: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.contact-card {
    background: #f8fafc;
    color: #1f2937;
}

.contact-card a {
    color: var(--brand-accent);
    font-weight: 600;
    text-decoration: none;
    background: #0b3550;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 229, 72, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-id-list {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-right: 0.35rem;
}

.contact-separator {
    color: rgba(31, 41, 55, 0.5);
}

.contact-card a:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
    background: #0a4568;
}

.form-text {
    color: #6b7280;
}

.vpd-wrapper {
    width: 100%;
}

.vpd-input-group input {
    text-align: right;
}

.vpd-main .form-control {
    line-height: 1.5;
    padding: .375rem .75rem;
}

.vpd-main .vpd-input-group label {
    border-top-right-radius: 0.25rem !important;
    border-bottom-right-radius: 0.25rem !important;
}

.vpd-main .vpd-content {
    border-radius: 0.9rem;
}

.vpd-main .vpd-header {
    border-top-left-radius: 0.9rem;
    border-top-right-radius: 0.9rem;
}

#amountDetails {
    color: #ffffff;
}

.security-code-box {
    background: #f8fafc;
    color: #0f172a;
    border-radius: 0.75rem;
    border: 1px dashed #cbd5f5;
    text-align: center;
    padding: 0.75rem 1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-code-image {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 576px) {
    .poster-card img {
        max-height: 320px;
    }

    .contact-id-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        margin-right: 0;
        margin-top: 0.5rem;
        width: 100%;
    }

    .contact-id-list a {
        width: 100%;
        justify-content: center;
        padding: 0.35rem 0.75rem;
    }

    .contact-separator {
        display: none;
    }
}
