:root {
    --primary: #5b1020;
    --gold: #d8a72d;
    --light: #f6f7fb;
    --dark: #18202a;
    --success: #18794e;
    --danger: #b42318
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--light);
    color: var(--dark)
}

a {
    text-decoration: none;
    color: inherit
}

.container {
    width: min(1120px, 92%);
    margin: auto
}

.navbar {
    background: linear-gradient(100deg, var(--primary), #871b35);
    color: #fff;
    padding: 14px 0;
    box-shadow: 0 5px 20px #0002
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 900;
    border: 3px solid var(--gold)
}

.nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.btn {
    display: inline-block;
    border: 0;
    border-radius: 9px;
    padding: 11px 18px;
    font-weight: 700;
    cursor: pointer;
    background: var(--primary);
    color: #fff
}

.btn-gold {
    background: var(--gold);
    color: #251b00
}

.btn-light {
    background: #fff;
    color: var(--primary)
}

.btn-success {
    background: var(--success)
}

.btn-danger {
    background: var(--danger)
}

.hero {
    padding: 80px 0;
    background: radial-gradient(circle at 80% 20%, #d8a72d55, transparent 32%), linear-gradient(135deg, #fff, #f7ebee)
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 45px;
    align-items: center
}

.hero h1 {
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
    margin: 0 0 20px;
    color: var(--primary)
}

.hero p {
    font-size: 18px;
    line-height: 1.7
}

.hero-card,
.card {
    background: #fff;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 15px 45px #50102018;
    border: 1px solid #eee
}

.id-preview {
    background: linear-gradient(145deg, var(--primary), #7f1a31);
    color: #fff;
    border-radius: 16px;
    padding: 22px;
    min-height: 280px;
    position: relative;
    overflow: hidden
}

.id-preview:after {
    content: '';
    position: absolute;
    width: 170px;
    height: 170px;
    border: 30px solid #ffffff14;
    border-radius: 50%;
    right: -55px;
    bottom: -60px
}

.section {
    padding: 55px 0
}

.section-title {
    text-align: center;
    color: var(--primary);
    font-size: 32px;
    margin: 0 0 30px
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.step-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gold);
    font-weight: 900
}

.form-card {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 12px 40px #0001
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px
}

.full {
    grid-column: 1/-1
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px
}

.form-control {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cfd4dc;
    border-radius: 9px;
    font-size: 15px
}

.alert {
    padding: 13px 16px;
    border-radius: 9px;
    margin-bottom: 18px
}

.alert-success {
    background: #e8f7ef;
    color: #12653f
}

.alert-danger {
    background: #fdeceb;
    color: #8f1710
}

.table-wrap {
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px #0001
}

table {
    width: 100%;
    border-collapse: collapse
}

th,
td {
    padding: 13px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    white-space: nowrap
}

th {
    background: #f7eef0;
    color: var(--primary)
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800
}

.pending {
    background: #fff3cd;
    color: #7a5700
}

.approved {
    background: #dff5e8;
    color: #12633f
}

.rejected {
    background: #fde2e0;
    color: #8b1811
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 24px 0
}

.stat {
    background: #fff;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 8px 25px #0001
}

.stat strong {
    display: block;
    font-size: 30px;
    color: var(--primary)
}

.id-card {
    width: 86mm;
    height: 54mm;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px #0003;
    position: relative;
    font-size: 10px
}

.id-top {
    height: 18mm;
    background: linear-gradient(100deg, var(--primary), #8e1d38);
    color: #fff;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 8px
}

.id-logo {
    width: 30px;
    height: 30px;
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900
}

.id-body {
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 24mm 1fr 20mm;
    gap: 7px
}

.passport {
    width: 23mm;
    height: 27mm;
    object-fit: cover;
    border: 2px solid var(--primary)
}

.id-details h3 {
    margin: 0 0 4px;
    color: var(--primary);
    font-size: 12px
}

.id-details p {
    margin: 2px 0
}

.qr {
    width: 18mm;
    height: 18mm
}

.id-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gold);
    padding: 3px 9px;
    font-weight: 800;
    text-align: center
}

.verification {
    max-width: 650px;
    margin: 50px auto;
    text-align: center
}

.profile-photo {
    width: 130px;
    height: 145px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid var(--gold)
}

footer {
    background: #1f1115;
    color: #eee;
    padding: 25px 0;
    text-align: center;
    margin-top: 50px
}

@media(max-width:800px) {

    .hero-grid,
    .steps,
    .form-grid,
    .stats {
        grid-template-columns: 1fr
    }

    .full {
        grid-column: auto
    }

    .nav-inner {
        align-items: flex-start;
        flex-direction: column
    }

    .id-card {
        transform-origin: left top;
        transform: scale(.9);
        margin-bottom: -18px
    }
}

@media print {

    .navbar,
    footer,
    .no-print {
        display: none !important
    }

    body {
        background: #fff
    }

    .print-area {
        margin: 0
    }

    .id-card {
        box-shadow: none;
        page-break-inside: avoid
    }
}
/* University logo on the card header */

.id-logo {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 50%;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.id-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.id-university-name {
    line-height: 1.25;
}

.id-university-name b {
    font-size: 14px;
    text-transform: uppercase;
}

.id-university-name small {
    font-size: 10px;
    letter-spacing: 1px;
}

/* QR code area */

.qr-section {
    width: 105px;
    text-align: center;
    flex-shrink: 0;
}

.qr-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 4px;
    padding: 3px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 4px;
}

.qr {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Logo appearing inside QR code */

.qr-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    transform: translate(-50%, -50%);
    padding: 2px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.qr-section small {
    display: block;
    font-size: 8px;
    font-weight: 700;
    color: #111111;
}

.verification-test {
    margin-top: 25px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #dddddd;
    word-break: break-all;
}

.verification-test a {
    color: #d71920;
}

/* Prevent QR code distortion during printing */

@media print {
    .qr-wrapper {
        width: 100px !important;
        height: 100px !important;
        background: #ffffff !important;
        border: none;
    }

    .qr {
        width: 100% !important;
        height: 100% !important;
    }

    .qr-logo {
        width: 22px !important;
        height: 22px !important;
        background: #ffffff !important;
    }
}
/* ==================================================
   SMALL 3D FRONT AND BACK STUDENT ID CARD
================================================== */

.id-card-stage {
    width: 540px;
    height: 340px;
    margin: 35px auto 60px;
    perspective: 1500px;
}

.id-card-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform .9s cubic-bezier(.2,.75,.25,1);
}

.id-card-flipper:hover,
.id-card-flipper.is-flipped {
    transform: rotateY(180deg);
}

.id-card-side {
    position: absolute;
    inset: 0;
    width: 540px;
    height: 340px;
    overflow: hidden;
    border: 2px solid #087b42;
    border-radius: 15px;
    background:
        linear-gradient(
            125deg,
            rgba(255,255,255,.98),
            rgba(225,246,234,.96),
            rgba(255,255,255,.98)
        );
    box-shadow:
        0 24px 45px rgba(0,0,0,.28),
        0 7px 12px rgba(0,0,0,.15),
        inset 0 1px 1px rgba(255,255,255,.9);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
}

.id-card-front {
    transform: rotateY(0deg);
}

.id-card-back {
    transform: rotateY(180deg);
}

.id-card-side::after {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 20;
    width: 45%;
    height: 100%;
    content: "";
    pointer-events: none;
    transform: skewX(-20deg);
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.38),
            transparent
        );
    transition: left .9s ease;
}

.id-card-flipper:hover .id-card-side::after {
    left: 130%;
}

/* Security background */

.security-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: .16;
    background-image:
        repeating-radial-gradient(
            ellipse at 0 100%,
            transparent 0,
            transparent 8px,
            rgba(0,125,61,.55) 9px,
            transparent 10px
        ),
        repeating-linear-gradient(
            30deg,
            transparent 0,
            transparent 7px,
            rgba(0,120,60,.16) 8px,
            transparent 9px
        );
}

/* Front watermark */

.front-watermark,
.back-watermark {
    position: absolute;
    top: 87px;
    left: 190px;
    z-index: 1;
    width: 185px;
    height: 185px;
    opacity: .055;
}

.front-watermark img,
.back-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Front header */

.front-header {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    height: 67px;
    padding: 8px 19px;
    background: rgba(255,255,255,.65);
}

.front-logo {
    width: 54px;
    height: 54px;
    margin-right: 11px;
    object-fit: contain;
}

.front-heading h2 {
    max-width: 420px;
    margin: 0;
    color: #087b42;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
}

.front-heading p {
    margin: 3px 0 0;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

/* Front content */

.front-body {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr 148px;
    min-height: 190px;
    padding: 7px 21px 0;
}

.student-details {
    padding-right: 14px;
}

.detail-item {
    margin-bottom: 4px;
}

.detail-item span {
    display: block;
    margin-bottom: 1px;
    color: #218452;
    font-size: 6px;
    font-weight: 900;
    letter-spacing: .55px;
}

.detail-item strong {
    display: block;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.45fr .8fr;
    gap: 4px 13px;
    margin-top: 6px;
}

.detail-grid .detail-item strong {
    font-size: 8px;
}

.department-item {
    grid-column: 1 / -1;
}

.passport-section {
    text-align: center;
}

.passport-frame {
    width: 133px;
    height: 143px;
    margin-left: auto;
    overflow: hidden;
    border: 2px solid rgba(0,110,55,.5);
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,.18);
}

.passport-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-signature {
    width: 118px;
    margin: 7px auto 0;
}

.student-signature-line {
    height: 13px;
    border-bottom: 1px solid #111;
}

.student-signature small {
    display: block;
    margin-top: 2px;
    font-size: 6px;
}

/* Front card number */

.front-card-number {
    position: relative;
    z-index: 4;
    margin-top: 0;
    text-align: center;
}

.front-card-number span {
    display: block;
    color: #087b42;
    font-size: 6px;
    font-weight: 900;
    letter-spacing: .8px;
}

.front-card-number strong {
    display: block;
    margin-top: 2px;
    font-family: "Courier New", monospace;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 3px;
    white-space: nowrap;
}

/* Back header */

.back-header {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    height: 68px;
    padding: 8px 20px;
    background: rgba(255,255,255,.72);
    border-bottom: 2px solid #087b42;
}

.back-logo {
    width: 53px;
    height: 53px;
    margin-right: 11px;
    object-fit: contain;
}

.back-header h2 {
    max-width: 430px;
    margin: 0;
    color: #087b42;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
}

.back-header p {
    margin: 3px 0 0;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .8px;
}

/* Back content */

.back-body {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr 135px;
    gap: 15px;
    padding: 14px 22px 4px;
}

.return-message h3 {
    margin: 0 0 7px;
    color: #087b42;
    font-size: 11px;
    font-weight: 900;
}

.return-message p {
    margin: 0 0 6px;
    font-size: 8px;
    line-height: 1.35;
}

.return-box {
    margin-top: 8px;
    padding: 7px 8px;
    border-left: 3px solid #087b42;
    background: rgba(255,255,255,.76);
}

.return-box span {
    display: block;
    margin-bottom: 3px;
    color: #087b42;
    font-size: 6px;
    font-weight: 900;
    letter-spacing: .45px;
}

.return-box strong {
    display: block;
    font-size: 8px;
    line-height: 1.35;
}

/* Back QR */

.qr-section {
    text-align: center;
}

.qr-box {
    width: 115px;
    height: 115px;
    margin: auto;
    padding: 5px;
    overflow: hidden;
    background: #fff;
    border: 2px solid #087b42;
    border-radius: 7px;
}

.qr-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-section > strong {
    display: block;
    margin-top: 5px;
    font-size: 8px;
    font-weight: 900;
}

.qr-section small {
    display: block;
    margin-top: 2px;
    font-size: 6px;
}

/* Back bottom */

.back-bottom {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 5px 26px 31px;
}

.authority-signature {
    width: 145px;
    text-align: center;
}

.authority-signature-line {
    height: 15px;
    border-bottom: 1px solid #111;
}

.authority-signature span,
.valid-session span {
    display: block;
    margin-top: 2px;
    font-size: 6px;
}

.valid-session {
    text-align: center;
}

.valid-session span {
    color: #087b42;
    font-weight: 900;
}

.valid-session strong {
    display: block;
    margin-top: 2px;
    font-size: 9px;
}

/* Shared footer */

.card-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 8;
    padding: 6px 10px;
    background: #087b42;
    color: #fff;
    text-align: center;
    font-size: 8px;
    font-weight: 900;
}

/* Hidden print cards */

.print-card-container {
    display: none;
}

/* Mobile responsive */

@media (max-width: 600px) {
    .id-card-stage {
        width: 100%;
        max-width: 540px;
        height: auto;
        aspect-ratio: 540 / 340;
    }

    .id-card-flipper {
        transform-origin: top left;
    }

    .id-card-side {
        transform-origin: top left;
    }
}

/* Print front and back */

@media print {
    @page {
        size: auto;
        margin: 8mm;
    }

    body {
        margin: 0;
        background: #fff;
    }

    nav,
    footer,
    .no-print,
    .id-card-stage {
        display: none !important;
    }

    .print-area {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .print-card-container {
        display: block;
    }

    .print-card-page {
        display: flex;
        width: 100%;
        min-height: 90mm;
        align-items: flex-start;
        justify-content: center;
        page-break-after: always;
    }

    .print-card-page:last-child {
        page-break-after: auto;
    }

    .print-card {
        position: relative;
        inset: auto;
        display: block;
        width: 85.6mm;
        height: 53.98mm;
        border-width: .25mm;
        border-radius: 3mm;
        box-shadow: none;
        backface-visibility: visible;
        transform: none !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}
/* =====================================================
   MODERN STUDENT ID CARD PORTAL HOMEPAGE
===================================================== */

:root {
    --portal-red: #b5122d;
    --portal-red-dark: #7d0d20;
    --portal-blue: #0076b9;
    --portal-blue-dark: #004b7a;
    --portal-green: #00884a;
    --portal-gold: #f9c83e;
    --portal-orange: #f37a24;
    --portal-purple: #6336a5;
    --portal-dark: #101828;
    --portal-text: #475467;
    --portal-light: #f7f9fc;
    --portal-white: #ffffff;
}

.portal-home {
    overflow: hidden;
    background: #ffffff;
}

/* Hero */

.portal-hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(249,200,62,.22),
            transparent 24%
        ),
        radial-gradient(
            circle at 87% 15%,
            rgba(0,118,185,.24),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #790c20 0%,
            #ad1230 38%,
            #542475 68%,
            #00679c 100%
        );
    color: #ffffff;
}

.portal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255,255,255,.03) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.03) 1px,
            transparent 1px
        );
    background-size: 50px 50px;
    pointer-events: none;
}

.portal-hero-grid {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 70px;
    align-items: center;
    min-height: 680px;
    padding-top: 80px;
    padding-bottom: 120px;
}

.hero-content {
    animation: heroContentEntrance .9s ease both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 9px 16px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50px;
    background: rgba(255,255,255,.1);
    box-shadow: inset 0 0 18px rgba(255,255,255,.05);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--portal-gold);
    box-shadow: 0 0 0 6px rgba(249,200,62,.18);
    animation: badgePulse 1.8s infinite;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0 0 24px;
    color: #ffffff;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.02;
    letter-spacing: -2px;
    font-weight: 900;
}

.hero-content h1 span {
    display: inline;
    color: var(--portal-gold);
}

.hero-description {
    max-width: 690px;
    margin: 0;
    color: rgba(255,255,255,.87);
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.portal-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 13px 23px;
    border: 2px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        background-color .3s ease,
        border-color .3s ease,
        color .3s ease;
}

.portal-btn:hover {
    transform: translateY(-4px);
}

.portal-btn-primary {
    background: linear-gradient(
        135deg,
        var(--portal-gold),
        var(--portal-orange)
    );
    color: #221508;
    box-shadow: 0 13px 30px rgba(249,153,46,.35);
}

.portal-btn-primary:hover {
    color: #221508;
    box-shadow: 0 18px 40px rgba(249,153,46,.48);
}

.portal-btn-outline {
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.08);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.portal-btn-outline:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--portal-red);
}

.button-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.86);
    font-size: 13px;
    font-weight: 600;
}

.feature-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: var(--portal-gold);
    font-size: 11px;
}

/* Hero card preview */

.hero-card-area {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1200px;
    animation: heroCardEntrance 1s .15s ease both;
}

.digital-id-card {
    position: relative;
    z-index: 5;
    width: 510px;
    min-height: 320px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 24px;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.97),
            rgba(235,250,245,.96)
        );
    box-shadow:
        0 35px 70px rgba(8,8,25,.4),
        inset 0 0 0 1px rgba(255,255,255,.75);
    color: var(--portal-dark);
    transform: rotateY(-7deg) rotateX(3deg);
    animation: cardFloat 5s ease-in-out infinite;
    transition: transform .5s ease;
}

.hero-card-area:hover .digital-id-card {
    transform: rotateY(0) rotateX(0) translateY(-8px);
}

.id-security-lines {
    position: absolute;
    inset: 0;
    opacity: .12;
    background:
        repeating-radial-gradient(
            ellipse at 10% 90%,
            transparent 0,
            transparent 9px,
            rgba(0,136,74,.7) 10px,
            transparent 11px
        );
}

.id-watermark {
    position: absolute;
    top: 82px;
    left: 170px;
    width: 190px;
    height: 190px;
    opacity: .07;
}

.id-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.id-card-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 23px;
    background: linear-gradient(
        100deg,
        var(--portal-red),
        #d31a3b,
        var(--portal-purple)
    );
    color: #ffffff;
}

.id-card-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.id-card-logo {
    width: 57px;
    height: 57px;
    overflow: hidden;
    padding: 3px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 13px rgba(0,0,0,.2);
}

.id-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.id-card-brand strong {
    display: block;
    max-width: 300px;
    font-size: 15px;
    line-height: 1.25;
}

.id-card-brand small {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.83);
    font-size: 10px;
    letter-spacing: .8px;
}

.id-chip {
    display: grid;
    grid-template-columns: repeat(2, 10px);
    gap: 3px;
    padding: 8px;
    border-radius: 7px;
    background: linear-gradient(
        135deg,
        var(--portal-gold),
        #d89a18
    );
}

.id-chip span {
    width: 10px;
    height: 8px;
    border: 1px solid rgba(80,55,0,.3);
    border-radius: 2px;
}

.id-card-body {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 105px 1fr 92px;
    gap: 18px;
    align-items: center;
    padding: 27px 24px 25px;
}

.id-photo-preview {
    position: relative;
    height: 132px;
    overflow: hidden;
    border: 3px solid #ffffff;
    border-radius: 10px;
    background: linear-gradient(
        160deg,
        #dde9f2,
        #a9bfce
    );
    box-shadow: 0 6px 17px rgba(0,0,0,.17);
}

.photo-head {
    position: absolute;
    top: 18px;
    left: 32px;
    width: 41px;
    height: 47px;
    border-radius: 47% 47% 44% 44%;
    background: #647684;
}

.photo-body {
    position: absolute;
    bottom: -27px;
    left: 11px;
    width: 83px;
    height: 88px;
    border-radius: 50% 50% 0 0;
    background: #647684;
}

.id-student-data small {
    color: var(--portal-green);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .8px;
}

.id-student-data h3 {
    margin: 2px 0 13px;
    color: var(--portal-red);
    font-size: 18px;
    line-height: 1.1;
}

.id-data-row {
    margin-bottom: 6px;
}

.id-data-row span {
    display: block;
    color: #7a8796;
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
}

.id-data-row strong {
    display: block;
    color: var(--portal-dark);
    font-size: 10px;
}

.preview-qr {
    text-align: center;
}

.qr-pattern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 82px;
    height: 82px;
    padding: 7px;
    border: 4px solid #111111;
    background: #ffffff;
}

.qr-pattern span {
    background:
        repeating-linear-gradient(
            45deg,
            #111111 0,
            #111111 3px,
            #ffffff 3px,
            #ffffff 5px
        );
}

.preview-qr small {
    display: block;
    margin-top: 7px;
    color: #313a45;
    font-size: 7px;
    font-weight: 900;
}

.id-card-footer {
    position: relative;
    z-index: 2;
    padding: 10px 18px;
    background: linear-gradient(
        90deg,
        var(--portal-green),
        #00a85c
    );
    color: #ffffff;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
}

.floating-label {
    position: absolute;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 15px;
    border-radius: 13px;
    background: rgba(255,255,255,.93);
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
    color: var(--portal-dark);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.floating-label span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--portal-green);
    color: #ffffff;
}

.floating-label-one {
    top: -15px;
    right: 25px;
    animation: smallFloat 3s ease-in-out infinite;
}

.floating-label-two {
    right: -12px;
    bottom: 15px;
    background: var(--portal-gold);
    animation: smallFloat 3.5s .7s ease-in-out infinite;
}

.decorative-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.16);
}

.ring-one {
    top: -60px;
    right: -70px;
    width: 290px;
    height: 290px;
    animation: ringRotate 18s linear infinite;
}

.ring-two {
    bottom: -70px;
    left: -80px;
    width: 230px;
    height: 230px;
    border-style: dashed;
    animation: ringRotate 13s linear reverse infinite;
}

/* Animated bubbles */

.hero-bubbles span {
    position: absolute;
    z-index: 1;
    display: block;
    border-radius: 50%;
    background: rgba(255,255,255,.11);
    box-shadow: inset 0 0 20px rgba(255,255,255,.08);
    backdrop-filter: blur(4px);
}

.bubble-one {
    left: 6%;
    bottom: 14%;
    width: 74px;
    height: 74px;
    animation: bubbleMoveOne 9s ease-in-out infinite;
}

.bubble-two {
    top: 13%;
    left: 43%;
    width: 35px;
    height: 35px;
    background: rgba(249,200,62,.22) !important;
    animation: bubbleMoveTwo 8s ease-in-out infinite;
}

.bubble-three {
    top: 12%;
    right: 8%;
    width: 100px;
    height: 100px;
    animation: bubbleMoveOne 12s ease-in-out infinite reverse;
}

.bubble-four {
    right: 35%;
    bottom: 18%;
    width: 49px;
    height: 49px;
    background: rgba(0,206,255,.19) !important;
    animation: bubbleMoveTwo 7s ease-in-out infinite;
}

.bubble-five {
    top: 51%;
    left: 2%;
    width: 27px;
    height: 27px;
    background: rgba(249,200,62,.25) !important;
    animation: bubbleMoveOne 6s ease-in-out infinite;
}

.bubble-six {
    right: 2%;
    bottom: 30%;
    width: 31px;
    height: 31px;
    background: rgba(255,255,255,.18) !important;
    animation: bubbleMoveTwo 9s ease-in-out infinite reverse;
}

.hero-wave {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 3;
    height: 115px;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

.hero-wave path {
    fill: #ffffff;
}

/* Section heading */

.section-heading {
    max-width: 760px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--portal-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-heading h2,
.features-content h2 {
    margin: 0;
    color: var(--portal-dark);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -1.3px;
}

.section-heading h2 span,
.features-content h2 span {
    color: var(--portal-red);
}

.section-heading p {
    max-width: 650px;
    margin: 18px auto 0;
    color: var(--portal-text);
    font-size: 16px;
    line-height: 1.7;
}

/* Process */

.portal-process {
    position: relative;
    padding-top: 80px;
    padding-bottom: 105px;
    background: #ffffff;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.process-card {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    padding: 34px 30px;
    border: 1px solid #e5e9f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 13px 35px rgba(16,24,40,.07);
    transition:
        transform .4s ease,
        box-shadow .4s ease,
        border-color .4s ease;
}

.process-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    opacity: .08;
    transition: transform .4s ease;
}

.process-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 55px rgba(16,24,40,.14);
}

.process-card:hover::after {
    transform: scale(1.3);
}

.process-card-red:hover {
    border-color: rgba(181,18,45,.3);
}

.process-card-blue:hover {
    border-color: rgba(0,118,185,.3);
}

.process-card-gold:hover {
    border-color: rgba(249,200,62,.5);
}

.process-card-red::after {
    background: var(--portal-red);
}

.process-card-blue::after {
    background: var(--portal-blue);
}

.process-card-gold::after {
    background: var(--portal-gold);
}

.process-number {
    position: absolute;
    top: 18px;
    right: 24px;
    color: #eef1f5;
    font-size: 55px;
    font-weight: 900;
}

.process-icon {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 66px;
    height: 66px;
    margin-bottom: 25px;
    border-radius: 17px;
    color: #ffffff;
    font-size: 25px;
    font-weight: 900;
    box-shadow: 0 12px 25px rgba(0,0,0,.18);
    transition: transform .4s ease;
}

.process-card:hover .process-icon {
    transform: rotate(-7deg) scale(1.08);
}

.process-card-red .process-icon {
    background: linear-gradient(
        135deg,
        var(--portal-red),
        #ef3759
    );
}

.process-card-blue .process-icon {
    background: linear-gradient(
        135deg,
        var(--portal-blue),
        #00a6df
    );
}

.process-card-gold .process-icon {
    background: linear-gradient(
        135deg,
        var(--portal-gold),
        var(--portal-orange)
    );
    color: #281800;
}

.process-card h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 13px;
    color: var(--portal-dark);
    font-size: 21px;
    font-weight: 800;
}

.process-card p {
    position: relative;
    z-index: 2;
    margin: 0 0 23px;
    color: var(--portal-text);
    font-size: 14px;
    line-height: 1.75;
}

.process-card a {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--portal-red);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.process-card-blue a {
    color: var(--portal-blue);
}

.process-card-gold a {
    color: #c06200;
}

.process-card a span {
    transition: transform .3s ease;
}

.process-card a:hover span {
    transform: translateX(6px);
}

/* Features */

.portal-features {
    position: relative;
    padding: 110px 0;
    background:
        linear-gradient(
            140deg,
            #f7f9fc,
            #eef7f4
        );
}

.features-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 85px;
    align-items: center;
}

.features-visual {
    position: relative;
    min-height: 490px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.security-panel {
    position: relative;
    z-index: 4;
    max-width: 420px;
    padding: 44px 40px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 28px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.97),
            rgba(245,255,251,.9)
        );
    box-shadow: 0 30px 70px rgba(16,24,40,.15);
    text-align: center;
    animation: cardFloat 5s ease-in-out infinite;
}

.security-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 24px;
    border-radius: 25px;
    background: linear-gradient(
        135deg,
        var(--portal-green),
        #00bf6a
    );
    color: #ffffff;
    font-size: 35px;
    box-shadow: 0 18px 35px rgba(0,136,74,.25);
}

.security-panel h3 {
    margin: 0 0 14px;
    color: var(--portal-dark);
    font-size: 26px;
    font-weight: 900;
}

.security-panel > p {
    margin: 0;
    color: var(--portal-text);
    font-size: 14px;
    line-height: 1.75;
}

.security-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.security-stats div {
    padding: 18px;
    border-radius: 15px;
    background: #f5f8fb;
}

.security-stats strong {
    display: block;
    color: var(--portal-red);
    font-size: 24px;
}

.security-stats span {
    display: block;
    margin-top: 4px;
    color: var(--portal-text);
    font-size: 11px;
    font-weight: 700;
}

.visual-circle {
    position: absolute;
    border-radius: 50%;
}

.visual-circle-one {
    top: 10px;
    left: 30px;
    width: 290px;
    height: 290px;
    background: linear-gradient(
        135deg,
        rgba(181,18,45,.15),
        rgba(99,54,165,.18)
    );
    animation: bubbleMoveOne 8s ease-in-out infinite;
}

.visual-circle-two {
    right: 15px;
    bottom: 10px;
    width: 220px;
    height: 220px;
    background: linear-gradient(
        135deg,
        rgba(0,118,185,.15),
        rgba(0,136,74,.18)
    );
    animation: bubbleMoveTwo 9s ease-in-out infinite;
}

.features-content h2 {
    margin-bottom: 34px;
}

.feature-list {
    display: grid;
    gap: 18px;
}

.feature-list-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    align-items: start;
    padding: 21px;
    border-radius: 17px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(219,225,234,.85);
    transition:
        transform .35s ease,
        background .35s ease,
        box-shadow .35s ease;
}

.feature-list-item:hover {
    transform: translateX(8px);
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(16,24,40,.08);
}

.list-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

.list-icon-red {
    background: linear-gradient(
        135deg,
        var(--portal-red),
        #ef3759
    );
}

.list-icon-blue {
    background: linear-gradient(
        135deg,
        var(--portal-blue),
        #00a5df
    );
}

.list-icon-gold {
    background: linear-gradient(
        135deg,
        var(--portal-gold),
        var(--portal-orange)
    );
    color: #2d1b00;
}

.feature-list-item h3 {
    margin: 0 0 6px;
    color: var(--portal-dark);
    font-size: 17px;
    font-weight: 800;
}

.feature-list-item p {
    margin: 0;
    color: var(--portal-text);
    font-size: 13px;
    line-height: 1.65;
}

/* CTA */

.portal-cta {
    position: relative;
    overflow: hidden;
    padding: 70px 0;
    background: linear-gradient(
        110deg,
        var(--portal-red-dark),
        var(--portal-red),
        var(--portal-purple),
        var(--portal-blue-dark)
    );
    color: #ffffff;
}

.cta-content {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
}

.cta-content span {
    display: block;
    margin-bottom: 9px;
    color: var(--portal-gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cta-content h2 {
    max-width: 720px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(29px, 4vw, 43px);
    line-height: 1.15;
    font-weight: 900;
}

.portal-btn-light {
    flex-shrink: 0;
    background: #ffffff;
    color: var(--portal-red);
    box-shadow: 0 14px 35px rgba(0,0,0,.2);
}

.portal-btn-light span {
    margin: 0;
    color: inherit;
    font-size: 18px;
}

.portal-btn-light:hover {
    color: var(--portal-blue);
    box-shadow: 0 20px 45px rgba(0,0,0,.3);
}

.cta-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.cta-bubble-one {
    top: -90px;
    left: 7%;
    width: 230px;
    height: 230px;
    animation: bubbleMoveOne 8s ease-in-out infinite;
}

.cta-bubble-two {
    right: 7%;
    bottom: -120px;
    width: 290px;
    height: 290px;
    animation: bubbleMoveTwo 10s ease-in-out infinite;
}

/* Animations */

@keyframes heroContentEntrance {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroCardEntrance {
    from {
        opacity: 0;
        transform: translateX(55px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes cardFloat {
    0%,
    100% {
        transform: translateY(0) rotateY(-7deg) rotateX(3deg);
    }

    50% {
        transform: translateY(-13px) rotateY(-5deg) rotateX(2deg);
    }
}

@keyframes smallFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes badgePulse {
    0%,
    100% {
        box-shadow: 0 0 0 5px rgba(249,200,62,.13);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(249,200,62,.03);
    }
}

@keyframes bubbleMoveOne {
    0%,
    100% {
        transform: translate(0,0);
    }

    50% {
        transform: translate(25px,-35px);
    }
}

@keyframes bubbleMoveTwo {
    0%,
    100% {
        transform: translate(0,0);
    }

    50% {
        transform: translate(-25px,30px);
    }
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive */

@media (max-width: 1100px) {
    .portal-hero-grid {
        grid-template-columns: 1fr;
        gap: 55px;
        padding-top: 100px;
    }

    .hero-content {
        max-width: 800px;
        text-align: center;
        margin: auto;
    }

    .hero-description {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions,
    .hero-features {
        justify-content: center;
    }

    .hero-card-area {
        padding-bottom: 70px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .features-content {
        max-width: 850px;
        margin: auto;
    }
}

@media (max-width: 850px) {
    .portal-hero {
        min-height: auto;
    }

    .portal-hero-grid {
        padding-bottom: 145px;
    }

    .digital-id-card {
        width: 620px;
        max-width: 92vw;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-card {
        min-height: auto;
    }

    .cta-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 650px) {
    .portal-hero-grid {
        padding-top: 70px;
    }

    .hero-content h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .portal-btn {
        width: 100%;
    }

    .hero-features {
        align-items: flex-start;
        flex-direction: column;
    }

    .digital-id-card {
        width: 500px;
        transform: scale(.78);
        margin-top: -20px;
        margin-bottom: -35px;
    }

    .hero-card-area:hover .digital-id-card {
        transform: scale(.78) translateY(-5px);
    }

    .floating-label {
        display: none;
    }

    .id-card-body {
        grid-template-columns: 92px 1fr 78px;
        gap: 11px;
        padding: 21px 17px;
    }

    .id-photo-preview {
        height: 115px;
    }

    .qr-pattern {
        width: 68px;
        height: 68px;
    }

    .portal-process,
    .portal-features {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .section-heading h2,
    .features-content h2 {
        font-size: 32px;
    }

    .features-visual {
        min-height: 420px;
    }

    .security-panel {
        padding: 35px 25px;
    }

    .feature-list-item {
        grid-template-columns: 48px 1fr;
        padding: 17px;
    }

    .list-icon {
        width: 45px;
        height: 45px;
    }
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
/* =====================================================
   INTERNATIONAL STUDENT ID APPLICATION PAGE
===================================================== */

:root {
    --application-red: #a9152d;
    --application-red-dark: #761020;
    --application-blue: #0877b9;
    --application-green: #06864a;
    --application-gold: #f6c63d;
    --application-orange: #f47a24;
    --application-purple: #6740a4;
    --application-dark: #111827;
    --application-text: #667085;
    --application-border: #dfe5ec;
    --application-light: #f6f8fb;
    --application-white: #ffffff;
}

.application-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 35px;
    background:
        radial-gradient(
            circle at 5% 10%,
            rgba(169,21,45,.13),
            transparent 25%
        ),
        radial-gradient(
            circle at 95% 92%,
            rgba(8,119,185,.13),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #f4f7fb,
            #edf5f2
        );
}

.application-wrapper {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(400px, .88fr) minmax(580px, 1.12fr);
    width: 100%;
    max-width: 1500px;
    min-height: calc(100vh - 70px);
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 35px 90px rgba(16,24,40,.16);
}

/* Left university image */

.application-visual {
    position: sticky;
    top: 0;
    min-height: 100vh;
    overflow: hidden;
    color: #ffffff;
}

.campus-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: campusZoom 18s ease-in-out infinite alternate;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            160deg,
            rgba(82,7,22,.92),
            rgba(160,18,45,.82) 45%,
            rgba(29,36,90,.82) 72%,
            rgba(0,91,123,.88)
        );
}

.visual-pattern {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: .12;
    background-image:
        linear-gradient(
            rgba(255,255,255,.15) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.15) 1px,
            transparent 1px
        );
    background-size: 45px 45px;
}

.visual-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: 45px;
}

.application-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    text-decoration: none;
}

.application-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    padding: 4px;
    overflow: hidden;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

.application-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.application-brand strong {
    display: block;
    max-width: 330px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.3;
}

.application-brand small {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.75);
    font-size: 11px;
}

.visual-message {
    max-width: 570px;
    margin: 80px 0;
    animation: contentEntrance .9s ease both;
}

.visual-badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 15px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 30px;
    background: rgba(255,255,255,.11);
    color: var(--application-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    backdrop-filter: blur(9px);
}

.visual-message h1 {
    margin: 22px 0;
    color: #ffffff;
    font-size: clamp(38px, 4.4vw, 64px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -1.8px;
}

.visual-message h1 span {
    color: var(--application-gold);
}

.visual-message > p {
    max-width: 550px;
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: 16px;
    line-height: 1.75;
}

.visual-benefits {
    display: grid;
    gap: 18px;
    margin-top: 35px;
}

.visual-benefit {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 13px;
    align-items: start;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 14px;
    background: rgba(255,255,255,.07);
    transition:
        transform .3s ease,
        background .3s ease;
    backdrop-filter: blur(7px);
}

.visual-benefit:hover {
    transform: translateX(8px);
    background: rgba(255,255,255,.14);
}

.benefit-check {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(
        135deg,
        var(--application-gold),
        var(--application-orange)
    );
    color: #211500;
    font-size: 15px;
    font-weight: 900;
}

.visual-benefit strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
}

.visual-benefit small {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    line-height: 1.5;
}

.visual-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: rgba(255,255,255,.65);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .4px;
}

/* Right form panel */

.application-form-panel {
    position: relative;
    overflow-y: auto;
    background: #ffffff;
}

.form-panel-inner {
    width: 100%;
    max-width: 850px;
    margin: auto;
    padding: 55px 55px 70px;
}

.mobile-application-logo {
    display: none;
}

.form-introduction {
    margin-bottom: 32px;
}

.form-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--application-red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.form-introduction h2,
.application-success h2 {
    margin: 0;
    color: var(--application-dark);
    font-size: clamp(30px, 3vw, 43px);
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: -1px;
}

.form-introduction p,
.application-success > p {
    margin: 13px 0 0;
    color: var(--application-text);
    font-size: 14px;
    line-height: 1.7;
}

.form-introduction p strong {
    color: var(--application-red);
}

/* Alerts */

.modern-alert {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 13px;
    align-items: start;
    margin-bottom: 25px;
    padding: 16px 18px;
    border-radius: 14px;
}

.error-alert {
    border: 1px solid #f4bcc4;
    background: #fff2f4;
    color: #8c162a;
}

.alert-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    background: #dc2949;
    color: #ffffff;
    font-weight: 900;
}

.modern-alert strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.modern-alert p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
}

/* Form sections */

.international-form {
    display: grid;
    gap: 28px;
}

.form-section {
    padding: 27px;
    border: 1px solid var(--application-border);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fbfcfe
        );
    transition:
        border-color .35s ease,
        box-shadow .35s ease,
        transform .35s ease;
}

.form-section:hover {
    transform: translateY(-3px);
    border-color: rgba(169,21,45,.25);
    box-shadow: 0 18px 45px rgba(16,24,40,.07);
}

.form-section-heading {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 23px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0f4;
}

.section-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    border-radius: 13px;
    background: linear-gradient(
        135deg,
        var(--application-red),
        #dc2748
    );
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(169,21,45,.23);
}

.blue-number {
    background: linear-gradient(
        135deg,
        var(--application-blue),
        #20a8e3
    );
    box-shadow: 0 10px 22px rgba(8,119,185,.23);
}

.gold-number {
    background: linear-gradient(
        135deg,
        var(--application-gold),
        var(--application-orange)
    );
    color: #281900;
    box-shadow: 0 10px 22px rgba(246,160,45,.25);
}

.green-number {
    background: linear-gradient(
        135deg,
        var(--application-green),
        #17bb72
    );
    box-shadow: 0 10px 22px rgba(6,134,74,.23);
}

.purple-number {
    background: linear-gradient(
        135deg,
        var(--application-purple),
        #945ed9
    );
    box-shadow: 0 10px 22px rgba(103,64,164,.23);
}

.form-section-heading h3 {
    margin: 0;
    color: var(--application-dark);
    font-size: 17px;
    font-weight: 850;
}

.form-section-heading p {
    margin: 4px 0 0;
    color: var(--application-text);
    font-size: 11px;
}

/* Fields */

.modern-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 19px;
}

.modern-form-group {
    min-width: 0;
}

.full-field {
    grid-column: 1 / -1;
}

.modern-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 11px;
    font-weight: 800;
}

.modern-form-group label span {
    color: var(--application-red);
}

.modern-form-control {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d5dce5;
    border-radius: 11px;
    outline: none;
    background: #ffffff;
    color: var(--application-dark);
    font-family: inherit;
    font-size: 13px;
    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.modern-form-control::placeholder {
    color: #a0a9b7;
}

.modern-form-control:hover {
    border-color: #a9b5c5;
}

.modern-form-control:focus {
    border-color: var(--application-red);
    box-shadow: 0 0 0 4px rgba(169,21,45,.1);
    transform: translateY(-1px);
}

select.modern-form-control {
    cursor: pointer;
}

.textarea-control {
    min-height: 105px;
    resize: vertical;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .modern-form-control {
    padding-left: 45px;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    color: var(--application-red);
    font-size: 16px;
    font-weight: 900;
    transform: translateY(-50%);
}

/* Upload cards */

.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.upload-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 210px;
    padding: 28px 20px;
    overflow: hidden;
    border: 2px dashed #bdc8d6;
    border-radius: 17px;
    background: #f9fbfd;
    text-align: center;
    cursor: pointer;
    transition:
        border-color .3s ease,
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}

.upload-card:hover {
    transform: translateY(-6px);
    border-color: var(--application-red);
    background: #fff8fa;
    box-shadow: 0 17px 35px rgba(16,24,40,.08);
}

.upload-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.upload-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 15px;
    border-radius: 17px;
    background: linear-gradient(
        135deg,
        var(--application-red),
        #df2c4d
    );
    color: #ffffff;
    font-size: 23px;
    font-weight: 900;
    box-shadow: 0 11px 25px rgba(169,21,45,.22);
}

.signature-icon {
    background: linear-gradient(
        135deg,
        var(--application-purple),
        #9e63dc
    );
    box-shadow: 0 11px 25px rgba(103,64,164,.22);
}

.upload-card strong {
    color: var(--application-dark);
    font-size: 14px;
}

.upload-card small {
    max-width: 210px;
    margin-top: 7px;
    color: var(--application-text);
    font-size: 10px;
    line-height: 1.5;
}

.upload-action {
    margin-top: 14px;
    padding: 7px 13px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--application-red);
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(16,24,40,.08);
}

.optional-upload .upload-action {
    color: var(--application-purple);
}

/* Declaration and submit */

.application-declaration {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 12px;
    align-items: start;
    padding: 15px 17px;
    border: 1px solid #c9def0;
    border-radius: 13px;
    background: #f2f8fd;
}

.declaration-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--application-blue);
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 900;
}

.application-declaration p {
    margin: 0;
    color: #476176;
    font-size: 11px;
    line-height: 1.6;
}

.application-submit-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 58px;
    padding: 14px 25px;
    border: 0;
    border-radius: 14px;
    background:
        linear-gradient(
            105deg,
            var(--application-red-dark),
            var(--application-red),
            var(--application-purple),
            var(--application-blue)
        );
    background-size: 220% 100%;
    box-shadow: 0 17px 38px rgba(132,17,47,.27);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        background-position .5s ease;
}

.application-submit-button:hover {
    transform: translateY(-4px);
    background-position: 100% 0;
    box-shadow: 0 24px 48px rgba(88,25,100,.32);
}

.submit-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: rgba(255,255,255,.17);
    font-size: 17px;
    transition: transform .3s ease;
}

.application-submit-button:hover .submit-arrow {
    transform: translateX(5px);
}

/* Success */

.application-success {
    max-width: 620px;
    margin: 80px auto;
    text-align: center;
    animation: successEntrance .7s ease both;
}

.success-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 92px;
    height: 92px;
    margin: 0 auto 25px;
    border-radius: 28px;
    background: linear-gradient(
        135deg,
        var(--application-green),
        #1bc879
    );
    color: #ffffff;
    font-size: 41px;
    font-weight: 900;
    box-shadow: 0 22px 45px rgba(6,134,74,.24);
}

.success-registration {
    margin: 28px 0;
    padding: 18px;
    border: 1px solid var(--application-border);
    border-radius: 14px;
    background: var(--application-light);
}

.success-registration span {
    display: block;
    margin-bottom: 5px;
    color: var(--application-text);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.success-registration strong {
    color: var(--application-dark);
    font-size: 18px;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 13px;
    flex-wrap: wrap;
}

.application-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 49px;
    padding: 12px 20px;
    border-radius: 11px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.application-button:hover {
    transform: translateY(-4px);
}

.primary-button {
    background: linear-gradient(
        135deg,
        var(--application-red),
        var(--application-purple)
    );
    color: #ffffff;
    box-shadow: 0 13px 28px rgba(145,21,65,.22);
}

.secondary-button {
    border: 1px solid var(--application-border);
    background: #ffffff;
    color: var(--application-dark);
}

/* Moving bubbles */

.application-bubble {
    position: absolute;
    z-index: 1;
    display: block;
    border-radius: 50%;
    background: rgba(255,255,255,.65);
    box-shadow:
        inset 0 0 24px rgba(255,255,255,.8),
        0 12px 30px rgba(16,24,40,.08);
    backdrop-filter: blur(4px);
}

.bubble-a {
    top: 4%;
    left: 2%;
    width: 85px;
    height: 85px;
    animation: applicationBubbleOne 10s ease-in-out infinite;
}

.bubble-b {
    right: 2%;
    top: 12%;
    width: 42px;
    height: 42px;
    background: rgba(246,198,61,.37);
    animation: applicationBubbleTwo 8s ease-in-out infinite;
}

.bubble-c {
    bottom: 8%;
    right: 4%;
    width: 105px;
    height: 105px;
    background: rgba(8,119,185,.13);
    animation: applicationBubbleOne 13s ease-in-out infinite reverse;
}

.bubble-d {
    bottom: 16%;
    left: 3%;
    width: 37px;
    height: 37px;
    background: rgba(169,21,45,.16);
    animation: applicationBubbleTwo 7s ease-in-out infinite reverse;
}

.bubble-e {
    top: 42%;
    right: 1%;
    width: 27px;
    height: 27px;
    background: rgba(103,64,164,.25);
    animation: applicationBubbleOne 6s ease-in-out infinite;
}

.bubble-f {
    top: 62%;
    left: 1%;
    width: 48px;
    height: 48px;
    background: rgba(6,134,74,.15);
    animation: applicationBubbleTwo 9s ease-in-out infinite;
}

/* Animations */

@keyframes campusZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

@keyframes contentEntrance {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successEntrance {
    from {
        opacity: 0;
        transform: scale(.94) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes applicationBubbleOne {
    0%,
    100% {
        transform: translate(0,0);
    }

    50% {
        transform: translate(35px,-45px);
    }
}

@keyframes applicationBubbleTwo {
    0%,
    100% {
        transform: translate(0,0);
    }

    50% {
        transform: translate(-30px,40px);
    }
}

/* Responsive */

@media (max-width: 1180px) {
    .application-page {
        padding: 20px;
    }

    .application-wrapper {
        grid-template-columns: 380px 1fr;
        min-height: calc(100vh - 40px);
    }

    .visual-content {
        padding: 35px 30px;
    }

    .visual-message h1 {
        font-size: 44px;
    }

    .form-panel-inner {
        padding: 45px 35px 60px;
    }
}

@media (max-width: 950px) {
    .application-page {
        padding: 0;
    }

    .application-wrapper {
        display: block;
        min-height: 100vh;
        border-radius: 0;
    }

    .application-visual {
        position: relative;
        min-height: 570px;
    }

    .visual-content {
        min-height: 570px;
    }

    .visual-message {
        max-width: 680px;
        margin: 55px 0;
    }

    .visual-message h1 {
        max-width: 630px;
        font-size: 48px;
    }

    .application-form-panel {
        overflow: visible;
    }

    .form-panel-inner {
        max-width: 850px;
        padding: 60px 40px 75px;
    }
}

@media (max-width: 700px) {
    .application-visual {
        display: none;
    }

    .mobile-application-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 35px;
    }

    .mobile-application-logo img {
        width: 58px;
        height: 58px;
        object-fit: contain;
    }

    .mobile-application-logo strong {
        display: block;
        color: var(--application-red);
        font-size: 14px;
    }

    .mobile-application-logo small {
        display: block;
        margin-top: 3px;
        color: var(--application-text);
        font-size: 10px;
    }

    .form-panel-inner {
        padding: 38px 18px 60px;
    }

    .form-introduction h2,
    .application-success h2 {
        font-size: 31px;
    }

    .form-section {
        padding: 21px 16px;
        border-radius: 16px;
    }

    .modern-form-grid,
    .upload-grid {
        grid-template-columns: 1fr;
    }

    .full-field {
        grid-column: auto;
    }

    .upload-card {
        min-height: 190px;
    }

    .success-actions {
        flex-direction: column;
    }

    .application-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}