/* Registration form. Light Apple/Tesla surface. Beats leftover #reg-home-css on the test pages. */
.reg-home[hidden],
#regHome[hidden] { display: none !important; }
.reg-pack {
    margin: 0;
    min-height: 100vh;
    background: #f5f5f7;
    color: #1d1d1f;
    font-family: var(--font-main, "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif);
}
.reg-stage {
    min-height: 100vh;
    display: flex;
    box-sizing: border-box;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.22);
}
#regHome.reg-home,
.reg-home {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    overflow: auto;
    box-sizing: border-box;
    padding: 32px 20px;
}
html.reg-home-open { overflow: hidden; }
#regHome .reg-home__backdrop,
.reg-home__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
}
#regHome .reg-home__dialog.reg-modal.sky-contact,
.reg-home__dialog.reg-modal,
.reg-stage .reg-modal {
    display: block;
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    margin: auto;
    box-sizing: border-box;
    padding: 32px 36px 36px;
    background: #fff;
    color: #1d1d1f;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: var(--font-main, "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif);
}
#regHome .reg-home__close,
.reg-home__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f5f5f7;
    color: #86868b;
    font: 400 22px/1 var(--font-main, "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif);
    cursor: pointer;
}
#regHome .reg-home__close:hover,
.reg-home__close:hover { background: #e8e8ed; color: #1d1d1f; }
#regHome .reg-home__close:focus-visible,
.reg-home__close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px #EBF2FA;
}
.reg-badge,
#regHome .reg-badge {
    display: block;
    width: fit-content;
    margin: 0 40px 12px auto;
    padding: 4px 8px;
    border-radius: 6px;
    background: #EBF2FA;
    color: #375A8F;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.2;
}
.reg-lang {
    margin: 0 40px 8px 0;
    text-align: right;
    font-size: 0.8125rem;
    font-weight: 500;
}
.reg-lang a { color: #375A8F; }
#regHome .reg-modal h1,
.reg-modal h1 {
    margin: 0 0 8px;
    padding-right: 40px;
    font-size: 27px;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #3a3a3c;
}
#regHome .reg-lead,
.reg-lead {
    margin: 0 0 28px;
    max-width: 40rem;
    color: #5a5a5f;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
}
#regHome .reg-modal .sky-contact__form,
.reg-home .sky-contact__form,
.reg-stage .sky-contact__form,
.reg-pack .sky-contact__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    width: 100%;
    max-width: none;
    margin: 0;
}
.reg-home .sky-contact__wide,
.reg-stage .sky-contact__wide,
.reg-pack .sky-contact__wide { grid-column: 1 / -1; }
.reg-home input[type="hidden"],
.reg-stage input[type="hidden"],
.reg-pack input[type="hidden"],
#regHome input[hidden] { display: none !important; }
#regHome .reg-field,
.reg-field { min-width: 0; }
#regHome .reg-field > label,
.reg-field > label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #48484a;
}
.reg-field > input {
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    background: #fff;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    -webkit-appearance: none;
    appearance: none;
}
.reg-field > input:focus {
    outline: none;
    border-color: #3B6BA5;
    box-shadow: 0 0 0 4px #EBF2FA;
}
#regHome .reg-domain,
.reg-domain {
    display: flex;
    align-items: stretch;
    height: 46px;
    background: #fff;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    overflow: hidden;
}
#regHome .reg-domain:focus-within,
.reg-domain:focus-within {
    border-color: #3B6BA5;
    box-shadow: 0 0 0 4px #EBF2FA;
}
#regHome .reg-modal .reg-domain input,
.reg-domain input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    color: #1d1d1f;
}
#regHome .reg-modal .reg-domain input:focus,
.reg-domain input:focus { outline: none; border: 0; box-shadow: none; }
#regHome .reg-domain__suffix,
.reg-domain__suffix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-left: 1px solid #e8e8ed;
    background: #f2f2f4;
    color: #3a3a3c;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
}
#regHome .reg-check,
.reg-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    color: #5a5a5f;
}
#regHome .reg-modal .reg-check input,
.reg-check input {
    appearance: auto;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin: 2px 0 0;
    padding: 0;
    accent-color: #375A8F;
}
#regHome .reg-terms,
.reg-terms {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #5a5a5f;
}
#regHome .reg-terms a,
.reg-terms a {
    font-weight: 500;
    color: #3B6BA5;
    text-decoration: underline;
    text-underline-offset: 2px;
}
#regHome .reg-modal .btn.btn--primary,
.reg-modal .btn.btn--primary,
.reg-pack .btn.btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    margin-top: 6px;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 12px;
    background: #375A8F;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: none;
    transform: none;
}
#regHome .reg-modal .btn.btn--primary:hover,
.reg-modal .btn.btn--primary:hover,
.reg-pack .btn.btn--primary:hover {
    background: #2C4A75;
    border: 0;
    color: #fff;
    box-shadow: none;
    transform: none;
}
#regHome .reg-modal .btn.btn--primary:focus-visible,
.reg-modal .btn.btn--primary:focus-visible,
.reg-pack .btn.btn--primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px #EBF2FA;
}
#regHome .reg-modal .btn[disabled],
.reg-modal .btn[disabled],
.reg-pack .btn[disabled] { opacity: 0.55; cursor: wait; }
#regHome .form-validation,
.reg-stage .form-validation,
.form-validation {
    display: block;
    min-height: 0;
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.4;
}
#regHome .has-error .form-validation,
.reg-stage .has-error .form-validation,
.has-error .form-validation,
#regHome [data-reg-error],
.reg-stage [data-reg-error],
[data-reg-error] { color: #d12b1f; }
#regHome .has-success .form-validation,
.reg-stage .has-success .form-validation,
.has-success .form-validation { color: #248a3d; }
#regHome .reg-field.has-error > input,
.reg-stage .reg-field.has-error > input,
.reg-field.has-error > input,
#regHome .has-error .reg-domain,
.reg-stage .has-error .reg-domain,
.has-error .reg-domain { border-color: #d12b1f; }
#regHome .has-success .reg-domain,
.reg-stage .has-success .reg-domain,
.has-success .reg-domain { border-color: #34c759; }
#regHome [data-reg-error],
.reg-stage [data-reg-error],
[data-reg-error] { margin: 0; }
.reg-btn__spin {
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: reg-spin 0.7s linear infinite;
}
.reg-btn__spin[hidden] { display: none !important; }
button[data-reg-busy="1"] .reg-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@keyframes reg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .reg-btn__spin { animation: none; }
}
.reg-cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 5000;
    box-sizing: border-box;
    padding: 14px 16px;
    background: #fff;
    color: #1d1d1f;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
    font-family: var(--font-main, "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif);
}
.reg-cookie[hidden] { display: none !important; }
.reg-cookie__inner { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.reg-cookie__text { margin: 0; font-size: 0.875rem; color: #6e6e73; }
.reg-cookie__actions { display: flex; gap: 8px; }
.reg-cookie__btn {
    min-width: 108px;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    border: 1px solid #375A8F;
    font: 500 0.875rem/1.2 inherit;
    cursor: pointer;
}
.reg-cookie__btn--accept { background: #375A8F; color: #fff; }
.reg-cookie__btn--reject { background: #fff; color: #424245; border-color: #d2d2d7; }
@media (max-width: 768px) {
    #regHome.reg-home,
    .reg-home { padding: 16px 12px; }
    .reg-stage { padding: 16px 12px; }
    #regHome .reg-home__dialog.reg-modal.sky-contact,
    .reg-home__dialog.reg-modal,
    .reg-stage .reg-modal { padding: 24px 18px 22px; }
    #regHome .reg-modal h1,
    .reg-modal h1 { font-size: 24px; font-weight: 600; color: #1d1d1f; }
    #regHome .reg-lead,
    .reg-lead { margin-bottom: 22px; color: #3a3a3c; font-size: 16px; }
    #regHome .reg-field > label,
    .reg-field > label { font-weight: 600; color: #1d1d1f; font-size: 15px; }
    #regHome .reg-field > input,
    .reg-field > input {
        border: 1px solid #b8b8bd;
        color: #1d1d1f;
        font-size: 16px;
    }
    #regHome .reg-modal .reg-domain input,
    .reg-domain input { color: #1d1d1f; font-size: 16px; }
    #regHome .reg-domain,
    .reg-domain { border: 1px solid #b8b8bd; }
    #regHome .reg-domain__suffix,
    .reg-domain__suffix {
        color: #1d1d1f;
        font-weight: 500;
        background: #ececf0;
        border-left: 1px solid #b8b8bd;
    }
    #regHome .reg-check,
    .reg-check,
    #regHome .reg-terms,
    .reg-terms { color: #3a3a3c; font-size: 14px; }
    #regHome .reg-modal .btn.btn--primary,
    .reg-modal .btn.btn--primary,
    .reg-pack .btn.btn--primary {
        background: #375A8F;
        color: #fff;
        font-weight: 600;
    }
    #regHome .reg-modal .sky-contact__form,
    .reg-home .sky-contact__form,
    .reg-stage .sky-contact__form,
    .reg-pack .sky-contact__form { grid-template-columns: 1fr; gap: 16px; }
    .reg-cookie__inner { flex-direction: column; align-items: stretch; }
    .reg-cookie__btn { width: 100%; }
}
