/*
|--------------------------------------------------------------------------
| SAN NICODEMO ABATE
|--------------------------------------------------------------------------
| PREMIUM PUBLIC REGISTRATION PAGE
|--------------------------------------------------------------------------
| Two-image heritage layout:
|
| - San Nicodemo statue
| - Cirò winter landscape
| - Premium floating registration card
| - Italian-first bilingual experience
|
|--------------------------------------------------------------------------
*/


/* ================================================================
   PAGE SHELL
================================================================ */

.register-premium {
    width: min(96%, 1380px);
    margin: 30px auto 96px;
}


/* ================================================================
   HERO
================================================================ */

.register-premium-hero {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    border: 1px solid rgba(198, 154, 48, 0.16);
    border-radius: 32px;
    background: #091824;
    box-shadow:
        0 34px 90px rgba(8, 25, 39, 0.16),
        0 10px 26px rgba(8, 25, 39, 0.06);
}


/* ================================================================
   CIRÒ BACKGROUND
================================================================ */

.register-premium-hero-town {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.register-premium-hero-town img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 48%;
    filter:
        saturate(0.82)
        contrast(1.04)
        brightness(0.93);
    transform: scale(1.01);
}


/* ================================================================
   HERO SHADING
================================================================ */

.register-premium-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(6, 19, 29, 0.98) 0%,
            rgba(6, 19, 29, 0.94) 24%,
            rgba(6, 19, 29, 0.80) 45%,
            rgba(6, 19, 29, 0.34) 69%,
            rgba(6, 19, 29, 0.10) 100%
        ),
        linear-gradient(
            180deg,
            rgba(5, 17, 27, 0.06) 0%,
            rgba(5, 17, 27, 0.18) 70%,
            rgba(5, 17, 27, 0.42) 100%
        );
}


/* ================================================================
   SAN NICODEMO STATUE
================================================================ */

.register-premium-statue {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: clamp(300px, 27vw, 390px);
    height: 100%;
    overflow: hidden;
}

.register-premium-statue::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(5, 17, 27, 0.06) 0%,
            rgba(5, 17, 27, 0.08) 54%,
            rgba(5, 17, 27, 0.72) 100%
        ),
        linear-gradient(
            180deg,
            transparent 70%,
            rgba(5, 17, 27, 0.30)
        );
}

.register-premium-statue img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 18%;
    filter:
        saturate(0.94)
        contrast(1.04);
}


/* ================================================================
   GOLD ACCENT
================================================================ */

.register-premium-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    height: 3px;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(211, 166, 48, 0.22) 16%,
            #d3a630 50%,
            rgba(211, 166, 48, 0.22) 84%,
            transparent 100%
        );
}


/* ================================================================
   HERO CONTENT
================================================================ */

.register-premium-hero-content {
    position: relative;
    z-index: 3;
    width: min(60%, 770px);
    margin-left: clamp(295px, 27vw, 390px);
    padding:
        clamp(64px, 6vw, 84px)
        clamp(38px, 4vw, 58px)
        60px;
}

.register-premium-eyebrow {
    margin: 0 0 18px;
    color: #d9ad35;
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}

.register-premium-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.8rem, 5.7vw, 6.35rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.052em;
    text-shadow:
        0 5px 22px rgba(0, 0, 0, 0.18);
}

.register-premium-intro {
    max-width: 700px;
    margin: 25px 0 0;
    color: #e3e9ee;
    font-size: 1.03rem;
    line-height: 1.82;
}


/* ================================================================
   COMMUNITY FEATURES
================================================================ */

.register-premium-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 45px;
}

.register-premium-feature {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 13px;
    min-width: 0;
    padding: 3px 22px 3px 0;
}

.register-premium-feature + .register-premium-feature {
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.register-premium-feature-icon {
    color: #d5a62a;
    font-size: 1.85rem;
    line-height: 1;
}

.register-premium-feature strong {
    display: block;
    color: #ffffff;
    font-size: 0.96rem;
    line-height: 1.34;
}

.register-premium-feature span:not(.register-premium-feature-icon) {
    display: block;
    margin-top: 5px;
    color: #cbd6de;
    font-size: 0.80rem;
    line-height: 1.52;
}


/* ================================================================
   HERO QUOTE
================================================================ */

.register-premium-hero-quote {
    position: absolute;
    top: 48px;
    right: 50px;
    z-index: 4;
    display: grid;
    gap: 1px;
    color: rgba(255, 255, 255, 0.94);
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 1.23rem;
    line-height: 1.40;
    text-align: right;
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.30);
}

.register-premium-hero-quote::after {
    content: "";
    width: 58px;
    height: 2px;
    margin: 14px 0 0 auto;
    background: #d4a52a;
}


/* ================================================================
   FLOATING FORM CARD
================================================================ */

.register-premium-form-card {
    position: relative;
    z-index: 6;
    width: min(88%, 1100px);
    margin: -58px auto 0;
    padding: clamp(34px, 4vw, 44px);
    border: 1px solid rgba(188, 143, 32, 0.16);
    border-radius: 27px;
    background:
        radial-gradient(
            circle at 100% 100%,
            rgba(214, 176, 79, 0.10),
            transparent 27%
        ),
        linear-gradient(
            180deg,
            #fffdf8 0%,
            #fbf7ee 100%
        );
    box-shadow:
        0 34px 82px rgba(10, 28, 43, 0.16),
        0 8px 22px rgba(10, 28, 43, 0.05);
}


/* ================================================================
   FORM HEADER
================================================================ */

.register-premium-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.register-premium-form-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.register-premium-pencil {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    background:
        linear-gradient(
            135deg,
            #e0b642 0%,
            #bd8514 100%
        );
    color: #ffffff;
    box-shadow:
        0 9px 22px rgba(188, 135, 20, 0.23);
}

.register-premium-form-heading h2 {
    margin: 0;
    color: #0b1c2b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 3.1rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.025em;
}

.register-premium-form-heading p {
    margin: 8px 0 0;
    color: #b1841a;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.register-premium-review-badge {
    display: flex;
    gap: 10px;
    max-width: 260px;
    color: #65707a;
    font-size: 0.82rem;
    line-height: 1.55;
}

.register-premium-review-badge > span {
    color: #c9941d;
    font-size: 1.2rem;
}

.register-premium-review-badge p {
    margin: 0;
}


/* ================================================================
   FORM
================================================================ */

.register-premium-form {
    display: grid;
    gap: 28px;
}

.register-premium-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.register-premium-field {
    display: grid;
    gap: 9px;
}

.register-premium-full {
    grid-column: 1 / -1;
}

.register-premium-field label {
    color: #0b1c2b;
    font-size: 0.93rem;
    font-weight: 800;
}

.register-premium-field label span {
    color: #b98614;
}

.register-premium-input-wrap,
.register-premium-textarea-wrap {
    position: relative;
}

.register-premium-input-icon,
.register-premium-textarea-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    z-index: 2;
    color: #74808a;
    font-size: 0.95rem;
    pointer-events: none;
    transform: translateY(-50%);
}

.register-premium-textarea-icon {
    top: 19px;
    transform: none;
}

.register-premium-field input,
.register-premium-field select,
.register-premium-field textarea {
    width: 100%;
    border: 1px solid rgba(11, 28, 43, 0.15);
    border-radius: 13px;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fffefc 100%
        );
    color: #0b1c2b;
    font: inherit;
    outline: none;
    box-shadow:
        0 3px 11px rgba(11, 28, 43, 0.03);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.register-premium-field input,
.register-premium-field select {
    min-height: 52px;
    padding: 0 16px 0 46px;
}

.register-premium-field textarea {
    min-height: 155px;
    padding: 16px 16px 16px 46px;
    resize: vertical;
    line-height: 1.70;
}

.register-premium-field input:hover,
.register-premium-field select:hover,
.register-premium-field textarea:hover {
    border-color: rgba(196, 148, 29, 0.30);
}

.register-premium-field input:focus,
.register-premium-field select:focus,
.register-premium-field textarea:focus {
    border-color: #c6931d;
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(198, 147, 29, 0.10),
        0 8px 20px rgba(11, 28, 43, 0.05);
}

.register-premium-field small {
    color: #747e87;
    font-size: 0.80rem;
    line-height: 1.45;
}


/* ================================================================
   SELECT
================================================================ */

.register-premium-field select {
    appearance: none;
    padding-right: 44px;
    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            #707a84 50%
        ),
        linear-gradient(
            135deg,
            #707a84 50%,
            transparent 50%
        );
    background-position:
        calc(100% - 20px) 50%,
        calc(100% - 15px) 50%;
    background-size:
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
}


/* ================================================================
   MESSAGE META
================================================================ */

.register-premium-message-meta {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}


/* ================================================================
   APPROVAL PANEL
================================================================ */

.register-premium-approval {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 21px 23px;
    border: 1px solid rgba(192, 146, 29, 0.22);
    border-radius: 16px;
    background:
        linear-gradient(
            135deg,
            #fff9e8 0%,
            #fbf2da 100%
        );
}

.register-premium-approval-icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #cf9e26;
    color: #ffffff;
    font-weight: 850;
}

.register-premium-approval strong {
    display: block;
    color: #0b1c2b;
    font-size: 0.95rem;
}

.register-premium-approval p {
    margin: 7px 0 0;
    color: #66717a;
    font-size: 0.88rem;
    line-height: 1.65;
}


/* ================================================================
   BOTTOM / CTA
================================================================ */

.register-premium-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.register-premium-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 55px;
    padding: 0 26px;
    border: 0;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            #071827 0%,
            #0d2639 100%
        );
    color: #ffffff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    box-shadow:
        0 12px 29px rgba(11, 28, 43, 0.19);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.register-premium-submit:hover,
.register-premium-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow:
        0 17px 36px rgba(11, 28, 43, 0.24);
    outline: none;
}

.register-premium-closing {
    display: grid;
    color: #6f7982;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 0.93rem;
    line-height: 1.35;
    text-align: right;
}

.register-premium-closing::after {
    content: "";
    width: 44px;
    height: 2px;
    margin: 12px 0 0 auto;
    background: #d1a029;
}


/* ================================================================
   ALERTS
================================================================ */

.register-alert {
    margin-bottom: 26px;
    border-radius: 14px;
}


/* ================================================================
   REGISTRATION SUCCESS
================================================================ */

.register-success-panel {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 22px;
    margin: 0 0 34px;
    padding: clamp(26px, 4vw, 38px);
    scroll-margin-top: 28px;
    border: 1px solid rgba(167, 122, 14, 0.28);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(215, 177, 77, 0.18), transparent 34%),
        linear-gradient(135deg, #fffbed 0%, #f7edcf 100%);
    box-shadow:
        0 20px 48px rgba(11, 28, 43, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.register-success-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d8ad37 0%, #af7810 100%);
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(176, 122, 16, 0.24);
}

.register-success-status {
    display: block;
    margin-bottom: 7px;
    color: #a4750e;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.register-success-copy h2 {
    margin: 0;
    color: #0b1c2b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.3vw, 3.25rem);
    font-weight: 500;
    line-height: 1.04;
}

.register-success-message {
    max-width: 790px;
    margin: 16px 0 0;
    color: #334654;
    font-size: 1.04rem;
    line-height: 1.75;
}

.register-success-next {
    max-width: 800px;
    margin-top: 20px;
    padding: 17px 19px;
    border-left: 3px solid #c8951d;
    border-radius: 0 12px 12px 0;
    background: rgba(255, 255, 255, 0.58);
}

.register-success-next strong {
    color: #0b1c2b;
}

.register-success-next p {
    margin: 6px 0 0;
    color: #68747d;
    line-height: 1.65;
}

.register-success-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    margin-top: 22px;
    padding: 0 21px;
    border-radius: 13px;
    background: #0b1c2b;
    color: #ffffff;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(11, 28, 43, 0.16);
}

.register-success-button:hover,
.register-success-button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 620px) {
    .register-success-panel {
        grid-template-columns: 1fr;
    }

    .register-success-icon {
        width: 54px;
        height: 54px;
    }

    .register-success-button {
        width: 100%;
    }
}


/* ================================================================
   LARGE TABLET
================================================================ */

@media (max-width: 1120px) {

    .register-premium-hero-content {
        width: min(62%, 700px);
        margin-left: 30%;
        padding-left: 34px;
        padding-right: 34px;
    }

    .register-premium-hero-quote {
        right: 32px;
        font-size: 1.05rem;
    }

    .register-premium-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .register-premium-feature {
        padding-right: 0;
    }

    .register-premium-feature + .register-premium-feature {
        padding-left: 0;
        border-left: 0;
    }

}


/* ================================================================
   TABLET
================================================================ */

@media (max-width: 900px) {

    .register-premium-hero {
        min-height: 680px;
    }

    .register-premium-statue {
        width: 42%;
    }

    .register-premium-hero-content {
        width: 58%;
        margin-left: 40%;
        padding:
            54px
            28px
            46px;
    }

    .register-premium-hero h1 {
        font-size: clamp(3rem, 7vw, 4.8rem);
    }

    .register-premium-hero-quote {
        display: none;
    }

    .register-premium-form-card {
        width: 92%;
        margin-top: -38px;
    }

}


/* ================================================================
   MOBILE
================================================================ */

@media (max-width: 720px) {

    .register-premium {
        width: calc(100% - 18px);
        margin-top: 18px;
        margin-bottom: 72px;
    }

    .register-premium-hero {
        min-height: 820px;
        border-radius: 22px;
    }

    .register-premium-hero-town img {
        object-position: 58% center;
    }

    .register-premium-statue {
        top: 0;
        bottom: auto;
        width: 100%;
        height: 355px;
    }

    .register-premium-statue::before {
        background:
            linear-gradient(
                180deg,
                rgba(5, 17, 27, 0.02) 0%,
                rgba(5, 17, 27, 0.12) 60%,
                rgba(5, 17, 27, 0.92) 100%
            );
    }

    .register-premium-hero-shade {
        background:
            linear-gradient(
                180deg,
                rgba(5, 17, 27, 0.04) 0%,
                rgba(5, 17, 27, 0.18) 38%,
                rgba(5, 17, 27, 0.96) 64%,
                rgba(5, 17, 27, 0.98) 100%
            );
    }

    .register-premium-hero-content {
        width: 100%;
        margin-left: 0;
        padding:
            390px
            24px
            44px;
    }

    .register-premium-hero h1 {
        font-size: clamp(2.7rem, 13vw, 4.35rem);
    }

    .register-premium-intro {
        font-size: 0.98rem;
        line-height: 1.72;
    }

    .register-premium-form-card {
        width: calc(100% - 18px);
        margin-top: -25px;
        padding: 26px 20px;
        border-radius: 20px;
    }

    .register-premium-form-header {
        display: grid;
    }

    .register-premium-review-badge {
        max-width: none;
    }

    .register-premium-grid {
        grid-template-columns: 1fr;
    }

    .register-premium-full {
        grid-column: auto;
    }

    .register-premium-message-meta {
        display: grid;
        gap: 4px;
    }

    .register-premium-bottom {
        display: grid;
    }

    .register-premium-submit {
        width: 100%;
    }

    .register-premium-closing {
        text-align: left;
    }

    .register-premium-closing::after {
        margin-left: 0;
    }

}


/* ================================================================
   SMALL MOBILE
================================================================ */

@media (max-width: 430px) {

    .register-premium-hero {
        min-height: 850px;
    }

    .register-premium-statue {
        height: 330px;
    }

    .register-premium-hero-content {
        padding-top: 365px;
    }

    .register-premium-form-heading {
        align-items: flex-start;
    }

    .register-premium-pencil {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

}


/* ================================================================
   REDUCED MOTION
================================================================ */

@media (prefers-reduced-motion: reduce) {

    .register-premium-submit,
    .register-premium-field input,
    .register-premium-field select,
    .register-premium-field textarea {
        transition: none;
    }

    .register-premium-submit:hover,
    .register-premium-submit:focus-visible {
        transform: none;
    }

}