/* =========================================================
   U.P. – JAPAN INVESTMENT MEET 2026
   REGISTRATION PAGE
========================================================= */
:root {
    --indigo-950: #0E1A3C;
    --indigo-850: #152352;
    --indigo-700: #243876;
    --vermillion: #BD3A26;
    --gold: #C9A24B;
    --gold-soft: #E6D6A8;
    --ivory: #FAF6EC;
    --ivory-dim: #F1EBDC;
    --ink: #1A1A1A;
    --ink-soft: #666;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --display: 'Fraunces', Georgia, serif;
    --body: 'Inter', Arial, sans-serif;
    --mono: 'IBM Plex Mono', monospace;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: var(--body);
    background: var(--indigo-950);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

button,
select {
    font-family: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   PAGE
========================================================= */

.registration-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: radial-gradient( 70% 80% at 100% 0%, var(--indigo-700) 0%, transparent 65% ), radial-gradient( 50% 60% at 0% 100%, #192b5d 0%, transparent 70% ), var(--indigo-950);
    display: flex;
    flex-direction: column;
}


/* =========================================================
   DECORATIVE BACKGROUND
========================================================= */

.bg-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.circle-one {
    width: 500px;
    height: 500px;
    right: -260px;
    top: 100px;
    background: var(--vermillion);
    opacity: .13;
    animation: floatCircle 12s ease-in-out infinite;
}

.circle-two {
    width: 360px;
    height: 360px;
    left: -220px;
    bottom: -150px;
    background: var(--gold);
    opacity: .07;
    animation: floatCircle 15s ease-in-out infinite reverse;
}

.bg-ring {
    position: absolute;
    border: 1px solid rgba(201, 162, 75, .16);
    border-radius: 50%;
    pointer-events: none;
}

.ring-one {
    width: 420px;
    height: 420px;
    right: 7%;
    top: 15%;
    animation: rotateRing 25s linear infinite;
}

.ring-two {
    width: 620px;
    height: 620px;
    left: -300px;
    top: 20%;
    border-color: rgba(250, 246, 236, .06);
    animation: rotateRing 35s linear infinite reverse;
}


/* =========================================================
   HEADER
========================================================= */

.registration-header {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
    animation: headerDown .8s ease forwards;
}

.registration-logos {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .registration-logos img {
        height: 42px;
        width: auto;
        object-fit: contain;
    }

    .registration-logos span {
        width: 1px;
        height: 28px;
        background: rgba(250, 246, 236, .35);
    }

.back-home {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    color: rgba(250, 246, 236, .7);
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    transition: color .25s ease, border-color .25s ease, transform .25s ease;
}

    .back-home:hover {
        color: var(--gold-soft);
        border-color: var(--gold);
        transform: translateX(-3px);
    }


/* =========================================================
   MAIN
========================================================= */

.registration-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 24px 70px;
    position: relative;
    z-index: 2;
}


/* =========================================================
   CARD
========================================================= */

.registration-card {
    width: 100%;
    max-width: 650px;
    background: rgba(250, 246, 236, .98);
    position: relative;
    padding: 48px 55px 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28), 0 8px 30px rgba(0, 0, 0, .15);
    animation: cardReveal 1s cubic-bezier(.22, 1, .36, 1) forwards;
    opacity: 0;
    transform: translateY(35px) scale(.97);
}

.card-top-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient( 90deg, var(--vermillion), var(--gold), var(--vermillion) );
    background-size: 200% 100%;
    animation: gradientMove 5s linear infinite;
}


/* =========================================================
   STEP
========================================================= */

.registration-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .14em;
    color: var(--vermillion);
}

    .registration-step span:first-child {
        font-size: 12px;
        color: var(--gold);
    }

    .registration-step div {
        width: 45px;
        height: 1px;
        background: var(--gold);
    }


/* =========================================================
   HEADING
========================================================= */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .16em;
    color: var(--vermillion);
    margin-bottom: 16px;
}

    .eyebrow::before {
        content: '';
        width: 25px;
        height: 1px;
        background: var(--vermillion);
    }

.registration-heading h1 {
    margin: 0;
    color: var(--indigo-950);
    font-family: var(--display);
    font-size: clamp(42px, 6vw, 64px);
    line-height: .98;
    font-weight: 600;
    letter-spacing: -.02em;
}

.registration-heading p {
    max-width: 480px;
    margin: 22px 0 38px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   FORM
========================================================= */

.form-group {
    margin-top: 10px;
}

    .form-group label {
        display: block;
        margin-bottom: 11px;
        font-family: var(--mono);
        font-size: 10.5px;
        letter-spacing: .14em;
        color: var(--indigo-950);
    }


/* =========================================================
   SELECT
========================================================= */

.select-wrapper {
    position: relative;
}

    .select-wrapper select {
        width: 100%;
        height: 58px;
        appearance: none;
        -webkit-appearance: none;
        border: 1px solid rgba(14, 26, 60, .2);
        background: #fff;
        color: var(--indigo-950);
        padding: 0 55px 0 18px;
        font-size: 14px;
        outline: none;
        cursor: pointer;
        transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
    }

        .select-wrapper select:hover {
            border-color: var(--gold);
        }

        .select-wrapper select:focus {
            border-color: var(--gold);
            box-shadow: 0 0 0 3px rgba(201, 162, 75, .13);
        }

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vermillion);
    font-size: 22px;
    pointer-events: none;
    transition: transform .25s ease;
}

.select-wrapper:focus-within .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}


/* =========================================================
   VALIDATION
========================================================= */

.validation-message {
    display: none;
    margin-top: 14px;
    color: var(--vermillion);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .04em;
}

.form-group.error .validation-message {
    display: block;
}

.form-group.error select {
    border-color: var(--vermillion);
    animation: shake .35s ease;
}


/* =========================================================
   NEXT BUTTON
========================================================= */

.next-button {
    display: flex;
    width: 190px;
    min-width: 190px;
    height: 48px;
    margin: 24px auto 0;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 0 17px;
    border: 1px solid var(--gold);
    background: var(--indigo-950);
    color: var(--gold-soft);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .13em;
    position: relative;
    overflow: hidden;
    transition: color .3s ease, transform .3s ease, box-shadow .3s ease;
}

    .next-button::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gold);
        transform: translateX(-101%);
        transition: transform .4s cubic-bezier(.22, 1, .36, 1);
        z-index: 0;
    }

    .next-button span,
    .next-button strong {
        position: relative;
        z-index: 1;
    }

    .next-button strong {
        font-size: 17px;
        font-weight: 400;
        transition: transform .3s ease;
    }

    .next-button:hover::before {
        transform: translateX(0);
    }

    .next-button:hover {
        color: var(--indigo-950);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(14, 26, 60, .16);
    }

        .next-button:hover strong {
            transform: translateX(5px);
        }

    .next-button:active {
        transform: translateY(0);
    }


/* =========================================================
   CARD FOOTER
========================================================= */

.registration-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 35px;
}

    .registration-footer span {
        height: 1px;
        flex: 1;
        background: rgba(14, 26, 60, .1);
    }

    .registration-footer p {
        margin: 0;
        font-family: var(--mono);
        font-size: 9px;
        letter-spacing: .1em;
        color: rgba(14, 26, 60, .4);
        white-space: nowrap;
    }


/* =========================================================
   BOTTOM FOOTER
========================================================= */

.registration-bottom {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 18px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .08em;
    color: rgba(250, 246, 236, .35);
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes cardReveal {

    0% {
        opacity: 0;
        transform: translateY(35px) scale(.97);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


@keyframes headerDown {

    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes floatCircle {

    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-25px, 20px);
    }
}


@keyframes rotateRing {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


@keyframes gradientMove {

    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}


@keyframes shake {

    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .registration-header {
        padding: 20px 22px;
    }

    .registration-logos img {
        height: 34px;
    }

    .registration-logos {
        gap: 10px;
    }

        .registration-logos span {
            height: 22px;
        }

    .back-home {
        font-size: 9px;
    }

    .registration-main {
        padding: 35px 18px 55px;
    }

    .registration-card {
        padding: 38px 28px 30px;
    }

    .registration-heading h1 {
        font-size: 44px;
    }

    .registration-heading p {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .ring-one {
        width: 280px;
        height: 280px;
        right: -100px;
    }

    .ring-two {
        width: 400px;
        height: 400px;
        left: -250px;
    }
}


@media (max-width: 480px) {

    .registration-header {
        align-items: flex-start;
    }

    .registration-logos img {
        height: 29px;
    }

    .back-home {
        margin-top: 5px;
    }

    .registration-card {
        padding: 34px 22px 28px;
    }

    .registration-step {
        margin-bottom: 28px;
    }

    .registration-heading h1 {
        font-size: 39px;
    }

    .registration-heading p {
        font-size: 13.5px;
    }

    .registration-footer p {
        font-size: 8px;
    }

    .circle-one {
        width: 350px;
        height: 350px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
   CATEGORY SELECTION
========================================================= */
.category-form-group {
    margin-top: 10px;
}

    .category-form-group.error .category-option {
        border-color: rgba(189, 58, 38, .45);
    }

    .category-form-group.error .category-label {
        color: var(--vermillion);
    }

.category-label {
    display: block;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--indigo-950);
    margin-bottom: 7px;
}

.category-helper {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
}


/* =========================================================
   CATEGORY GRID
========================================================= */

.category-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}


/* =========================================================
   CATEGORY CARD
========================================================= */

.category-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 82px;
    padding: 18px 48px 18px 20px;
    background: rgba(255, 255, 255, .78);
    border: 1.5px solid rgba(14, 26, 60, .15);
    cursor: pointer;
    user-select: none;
    transition: border-color .3s ease, background .3s ease, transform .3s var(--ease-out), box-shadow .3s ease;
}


    /* Hover */

    .category-option:hover {
        transform: translateY(-3px);
        border-color: rgba(201, 162, 75, .75);
        background: rgba(255, 255, 255, .95);
        box-shadow: 0 12px 28px rgba(14, 26, 60, .10);
    }


    /* =========================================================
   HIDE DEFAULT RADIO
========================================================= */

    .category-option input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }


/* =========================================================
   CUSTOM RADIO
========================================================= */

.radio-custom {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #9a9a9a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .3s ease, transform .3s var(--ease-out);
}

.radio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--vermillion);
    transform: scale(0);
    transition: transform .3s var(--ease-out);
}


/* =========================================================
   CATEGORY CONTENT
========================================================= */

.category-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category-name {
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--indigo-950);
    transition: color .25s ease;
}

.category-select-text {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #858585;
    transition: color .25s ease;
}


/* =========================================================
   CHECK MARK
========================================================= */

.category-check {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--vermillion);
    color: white;
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(-50%) scale(.5);
    transition: opacity .3s ease, transform .3s var(--ease-out);
}


/* =========================================================
   SELECTED STATE
========================================================= */

.category-option:has(input[type="radio"]:checked) {
    border-color: var(--vermillion);
    background: linear-gradient( 135deg, rgba(189, 58, 38, .07), rgba(201, 162, 75, .06) );
    box-shadow: 0 12px 30px rgba(189, 58, 38, .12), inset 0 0 0 1px rgba(189, 58, 38, .08);
    transform: translateY(-2px);
}


    .category-option:has(input[type="radio"]:checked) .radio-custom {
        border-color: var(--vermillion);
        transform: scale(1.08);
    }


    .category-option:has(input[type="radio"]:checked) .radio-dot {
        transform: scale(1);
    }


    .category-option:has(input[type="radio"]:checked) .category-name {
        color: var(--vermillion);
    }


    .category-option:has(input[type="radio"]:checked) .category-select-text {
        color: var(--vermillion);
    }


    .category-option:has(input[type="radio"]:checked) .category-check {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }


/* =========================================================
   HOVER SELECT ANIMATION
========================================================= */

.category-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--vermillion);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .3s var(--ease-out);
}

.category-option:hover::before,
.category-option:has(input[type="radio"]:checked)::before {
    transform: scaleY(1);
}


/* =========================================================
   VALIDATION
========================================================= */

.validation-message {
    display: none;
    margin-top: 14px;
    padding: 11px 14px;
    border-left: 3px solid var(--vermillion);
    background: rgba(189, 58, 38, .07);
    color: var(--vermillion);
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   SHAKE ANIMATION
========================================================= */

.category-options.validation-error {
    animation: categoryShake .4s ease;
}

@keyframes categoryShake {

    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-7px);
    }

    50% {
        transform: translateX(7px);
    }

    75% {
        transform: translateX(-4px);
    }
}

/* =========================================================
   SWEET ALERT
========================================================= */
.registration-alert {
    border-radius: 4px !important;
    border: 1px solid rgba(201, 162, 75, .35) !important;
    box-shadow: 0 25px 70px rgba(14, 26, 60, .22) !important;
    padding: 32px !important;
}

.registration-alert-title {
    font-family: var(--display) !important;
    font-size: 28px !important;
    color: var(--indigo-950) !important;
}

.registration-alert-button {
    font-family: var(--mono) !important;
    font-size: 12px !important;
    letter-spacing: .08em !important;
    padding: 12px 24px !important;
    border-radius: 2px !important;
}

.swal2-cancel {
    font-family: var(--mono) !important;
    font-size: 12px !important;
    letter-spacing: .08em !important;
    padding: 12px 22px !important;
    border-radius: 2px !important;
}
