:root {
    --navy: #151c55;
    --navy-soft: #27306f;
    --orange: #f15a24;
    --purple: #421d75;
    --muted: #7c819d;
    --line: #d9dce7;
    --surface: rgba(255, 255, 255, 0.96);
}

* {
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    color: var(--navy);
    background: #101429;
    font-family: "Inter", sans-serif;
}

.registration-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
}

.background-image,
.background-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
}

.background-image {
    background: url("/site/img/registration-background.png") center 36% / cover no-repeat;
}

.background-overlay {
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(8, 20, 49, 0.17), rgba(13, 10, 22, 0.57)),
        radial-gradient(circle at 50% 20%, transparent 0, rgba(11, 7, 22, 0.28) 75%);
}

.registration-container {
    width: min(100%, 980px);
    padding: 34px 16px 54px;
}

.hero {
    color: #fff;
    margin-bottom: 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.hero h1 {
    display: inline-block;
    min-width: min(100%, 600px);
    margin: 0;
    padding: 14px 32px 17px;
    border-radius: 22px;
    background: linear-gradient(100deg, #ff5417 0%, #cb3853 48%, #3c176f 100%);
    box-shadow: 0 12px 35px rgba(34, 13, 64, 0.34);
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 700;
    line-height: 1.06;
}

.hero p {
    width: min(100%, 890px);
    margin: 18px auto 0;
    padding: 15px 22px 17px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    background: linear-gradient(105deg, rgba(8, 18, 50, 0.7), rgba(42, 18, 61, 0.58));
    box-shadow: 0 10px 28px rgba(4, 7, 27, 0.2);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.35;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}

.hero-scene {
    position: relative;
    min-height: clamp(210px, 29vw, 285px);
}

.hero-slogan {
    position: absolute;
    right: clamp(12px, 4vw, 48px);
    bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
    font-family: "Caveat", cursive;
    font-size: clamp(1.55rem, 4.2vw, 2.65rem);
    font-weight: 600;
    line-height: 0.98;
    text-align: left;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.78);
    transform: rotate(-7deg);
}

.hero-slogan::after {
    content: "";
    width: 108%;
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--orange);
    transform: rotate(-3deg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hero-slogan b {
    display: inline-block;
    margin-left: 4px;
    color: #fff;
    font-family: "Playfair Display", serif;
    font-size: 1.08em;
    font-weight: 400;
}

.registration-card {
    padding: clamp(20px, 4vw, 38px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(5, 5, 22, 0.32);
    backdrop-filter: blur(14px);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.section-heading.compact {
    margin-bottom: 15px;
}

.section-icon {
    display: grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    color: var(--navy);
    background: #f0f2fa;
    font-size: 1.55rem;
}

.section-icon.orange {
    color: var(--orange);
    background: #fff0e8;
}

.section-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
}

.section-heading h2 span,
.form-label span,
.consent b {
    color: #dc2f46;
}

.section-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.35;
}

.form-label {
    margin: 0 0 7px 2px;
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 700;
}

.input-group-custom {
    position: relative;
}

.input-group-custom > i {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 3;
    color: var(--navy-soft);
    font-size: 1.15rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.form-control,
.form-select {
    min-height: 50px;
    padding-left: 46px;
    border: 1px solid #cdd2e0;
    border-radius: 12px;
    color: var(--navy);
    background-color: #fff;
    font-size: 1rem;
    box-shadow: 0 3px 12px rgba(19, 27, 74, 0.04);
}

.form-control::placeholder {
    color: #9a9eb1;
}

.form-control:focus,
.form-select:focus {
    border-color: #69478d;
    box-shadow: 0 0 0 0.22rem rgba(79, 36, 119, 0.13);
}

.form-section {
    margin-top: 30px;
}

.check-card {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.check-card:hover {
    border-color: #9a89b3;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(24, 27, 71, 0.08);
}

.check-card:has(input:checked) {
    border-color: #654083;
    background: #faf7ff;
    box-shadow: inset 0 0 0 1px #654083;
}

.check-card input,
.location-list input,
.consent input {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: #4b2878;
}

.check-card i {
    width: 25px;
    color: #2e438c;
    font-size: 1.45rem;
    text-align: center;
}

.check-card span {
    font-weight: 600;
}

.location-picker {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(18, 24, 63, 0.05);
}

.location-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 5px 14px;
}

.location-list label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 5px;
    border-bottom: 1px solid #eff0f5;
    cursor: pointer;
    font-size: 0.93rem;
    line-height: 1.35;
}

.location-list label:last-child {
    border-bottom: 0;
}

.consent-wrap {
    margin-top: 28px;
    padding-top: 23px;
    border-top: 1px solid #e1e3ea;
}

.consent-options {
    display: grid;
    gap: 13px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e3ea;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--navy);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.consent input {
    margin-top: 0;
}

.consent a {
    color: #d5471a;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.submit-button {
    display: grid;
    grid-template-columns: 30px 1fr 30px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    margin-top: 22px;
    padding: 11px 24px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(100deg, #ff5417 0%, #cc3852 48%, #3c176f 100%);
    box-shadow: 0 12px 24px rgba(116, 34, 70, 0.22);
    font-family: "Playfair Display", serif;
    font-size: clamp(1.05rem, 3vw, 1.45rem);
    font-weight: 700;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(93, 28, 77, 0.3);
}

.submit-button:focus-visible {
    outline: 3px solid rgba(241, 90, 36, 0.38);
    outline-offset: 4px;
}

.security-note {
    margin: 17px 0 0;
    color: #85899a;
    font-size: 0.84rem;
    text-align: center;
}

.security-note i {
    margin-right: 5px;
}

@media (min-width: 768px) {
    .registration-container {
        padding: 48px 24px 72px;
    }

    .location-list {
        grid-template-columns: 1fr 1fr;
        column-gap: 24px;
    }
}

@media (max-width: 767.98px) {
    .background-image {
        background-position: right top;
    }

    .check-card input,
    .location-list input,
    .consent input {
        transform: translateY(-2px);
    }

    .registration-container {
        max-width: 560px;
    }

    .registration-card {
        border-radius: 22px;
    }

    .hero h1 {
        width: 100%;
        padding-inline: 16px;
        border-radius: 18px;
    }

    .hero p {
        padding: 13px 15px 15px;
        border-radius: 15px;
    }

    .hero-scene {
        min-height: clamp(190px, 55vw, 245px);
    }

    .hero-slogan {
        right: 8px;
        bottom: 23px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-icon {
        flex-basis: 45px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 390px) {
    .registration-container {
        padding-inline: 10px;
    }

    .registration-card {
        padding-inline: 15px;
    }

    .submit-button {
        grid-template-columns: 23px 1fr 23px;
        gap: 7px;
        padding-inline: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
