/* Isolated from the registration form at /reg/. */
.article-registration {
    box-sizing: border-box;
    width: 1280px;
    max-width: 100%;
    margin: 40px auto;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, .12);
    border-radius: 45px;
    background: #fff;
    color: #000;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    line-height: 1.4;
}
.article-registration *, .article-registration *::before, .article-registration *::after { box-sizing: border-box; }
.article-registration [hidden] { display: none !important; }
.article-registration .article-registration__steps {
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    transition: height .4s ease;
}
.article-registration .article-registration__step { display: flex; flex: 0 0 100%; min-width: 0; min-height: 693px; }
.article-registration .article-registration__image {
    flex: 0 0 44.6%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.article-registration .article-registration__image--first { background-image: url('../images/tsp-1.png'); }
.article-registration .article-registration__image--second { background-image: url('../images/tsp-2.png'); }
.article-registration .article-registration__content {
    flex: 1;
    min-width: 0;
    padding: 50px 35px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.article-registration .article-registration__header h2 {
    margin: 0 0 5px;
    color: #000;
    font-size: 38px;
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.14;
}
.article-registration .article-registration__header p { margin: 0; font-size: 16px; line-height: 1.4; }
.article-registration .article-registration__fields { display: flex; flex-direction: column; gap: 20px; }
.article-registration .article-registration__field { min-width: 0; margin: 0; padding: 0; border: 0; }
.article-registration .article-registration__field > label:not(.article-registration__check),
.article-registration .article-registration__field > legend {
    display: block;
    float: none;
    width: 100%;
    padding: 0;
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.4;
}
.article-registration .article-registration__field > input {
    display: block;
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 2px solid rgba(0, 0, 0, .07);
    border-radius: 22px;
    background: #fff;
    color: #1e1e1e;
    font: 500 14px/1.4 Montserrat, sans-serif;
}
.article-registration .article-registration__field > input::placeholder { color: #a5a5a5; opacity: 1; }
.article-registration .article-registration__field > small { display: block; margin-top: 6px; font-size: 12px; color: #666; }
.article-registration .article-registration__choices { display: flex; flex-direction: column; gap: 10px; }
.article-registration .article-registration__check { display: flex; align-items: center; gap: 12px; margin: 0; cursor: pointer; }
.article-registration .article-registration__check input {
    appearance: none;
    position: static;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    opacity: 1;
    border: 2px solid rgba(0, 0, 0, .07);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}
.article-registration .article-registration__check input:checked {
    border-color: transparent;
    background: url('../images/article-reg-checked.svg') center / 30px 30px no-repeat;
}
.article-registration .article-registration__check a { color: #f85046; text-decoration: none; }
.article-registration .article-registration__switch { display: inline-flex; padding: 4px; border-radius: 30px; background: #f4f4f2; }
.article-registration .article-registration__switch label { position: relative; margin: 0; cursor: pointer; }
.article-registration .article-registration__switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.article-registration .article-registration__switch span { display: block; padding: 12px 36px; border-radius: 26px; }
.article-registration .article-registration__switch input:checked + span { background: #fff; }
.article-registration input:focus-visible, .article-registration button:focus-visible,
.article-registration .article-registration__switch input:focus-visible + span { outline: 2px solid #f85046; outline-offset: 3px; }
.article-registration .article-registration__actions { display: flex; gap: 15px; }
.article-registration .article-registration__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 60px;
    margin: 0;
    padding: 15px 29px;
    border: 0;
    border-radius: 36px;
    background: #f85046;
    color: #fff;
    font: 600 16px/1.2 Montserrat, sans-serif;
    cursor: pointer;
}
.article-registration .article-registration__button--back { background: #f7f7f7; color: #000; }
.article-registration .article-registration__button:disabled { opacity: .6; cursor: wait; }
.article-registration .article-registration__error {
    margin: 6px 0 0;
    padding: 8px 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    background: #f8d7da;
    color: #721c24;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    animation: article-registration-shake .5s ease-in-out;
}
.article-registration [aria-invalid="true"] { border-color: #b42318; }
.article-registration .article-registration__status { margin: 20px; padding: 16px; border-radius: 16px; background: #fce9e7; overflow-wrap: anywhere; }
.article-registration .article-registration__status[data-success="true"] { background: #e5f4e8; color: #155724; }
.article-registration .article-registration__status { animation: article-registration-slide-down .3s ease-out; }
.article-registration-notice .__popup__text { margin-bottom: 0; }
@keyframes article-registration-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}
@keyframes article-registration-slide-down {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .article-registration .article-registration__steps { transition: none; }
    .article-registration .article-registration__error,
    .article-registration .article-registration__status { animation: none; }
}
@media (max-width: 1023px) {
    .article-registration .article-registration__image { flex-basis: 36%; }
    .article-registration .article-registration__content { padding: 35px 25px; }
    .article-registration .article-registration__header h2 { font-size: 32px; }
}
@media (max-width: 767px) {
    .article-registration { border: 1px solid #f7f7f5; border-radius: 30px; }
    .article-registration .article-registration__step { flex-direction: column; min-height: 0; }
    .article-registration .article-registration__image { flex: none; width: 100%; height: 238px; }
    .article-registration .article-registration__image--first { background-position: center top; }
    .article-registration .article-registration__image--second { background-position: center 15%; }
    .article-registration .article-registration__content { padding: 25px 19px 0; gap: 25px; }
    .article-registration .article-registration__header h2 { margin-bottom: 12px; font-size: 30px; line-height: 1.1; }
    .article-registration .article-registration__actions { flex-direction: column; }
    .article-registration .article-registration__button { width: 100%; }
    .article-registration .article-registration__actions--last .article-registration__button--back { order: 1; }
}
