/* ==========================================
   МЕХА ЕКАТЕРИНА
   Registration / Loyalty Card Form
   ========================================== */


/* ---------- VARIABLES ---------- */

:root {
    --black: #111111;
    --text: #282828;
    --muted: #77736f;

    --line: #dedbd6;
    --line-dark: #b8b3ad;

    --background: #f6f4f1;
    --paper: #ffffff;
    --soft: #faf9f7;

    --accent: #8b2027;
    --error: #a32027;

    --disabled: #d4d1cd;
}


/* ---------- RESET ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    min-height: 100%;

    background: var(--background);
    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ---------- FORM WIDTH ---------- */

.form-width {
    width: min(100% - 24px, 720px);
}


/* ---------- MAIN FORM ---------- */

#msform {
    margin: 42px auto 70px;

    position: relative;

    color: var(--text);
    text-align: left;
}


/* ---------- CARD / FIELDSET ---------- */

#msform fieldset {
    width: 100%;
    margin: 0;

    padding: 56px 64px 60px;

    position: relative;

    background: var(--paper);

    border: none;
    border-radius: 0;

    box-shadow: none;
}

#msform fieldset:not(:first-of-type) {
    display: none;
}


/* ---------- LOGO ---------- */

.logo {
    width: 100%;
    height: 78px;

    margin: 0 auto 48px;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* ---------- INTRO ---------- */

.form-intro {
    margin-bottom: 38px;
}

.form-eyebrow {
    margin-bottom: 13px;

    color: var(--accent);

    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;

    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.fs-title {
    margin: 0 0 15px;

    color: var(--black);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 42px;
    line-height: 1.08;
    font-weight: 400;

    letter-spacing: -0.025em;
    text-transform: none;
}

.fs-subtitle {
    color: var(--muted);

    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}

.form-description {
    max-width: 490px;
}


/* ---------- REQUIRED FIELDS ---------- */

.required-hint {
    margin: -17px 0 18px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.5;
}

.required-mark {
    color: var(--accent);
    font-weight: 600;
}


/* ---------- INPUT CONTAINER ---------- */

.form-fields {
    margin-bottom: 42px;
}


/* ---------- INPUTS ---------- */

#msform input[type="text"],
#msform input[type="number"],
#msform input[type="tel"],
#msform input[type="email"],
#msform input[type="date"],
#msform textarea,
#msform select {
    display: block;

    width: 100%;
    min-height: 52px;

    margin: 0 0 13px;
    padding: 15px 0;

    background: transparent;

    border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;

    outline: none;

    color: var(--black);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 15px;
    line-height: 1.4;

    box-shadow: none;

    -webkit-appearance: none;

    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease;
}

#msform input::placeholder,
#msform textarea::placeholder {
    color: #999590;
    opacity: 1;
}

#msform input[type="text"]:hover,
#msform input[type="number"]:hover,
#msform input[type="tel"]:hover,
#msform input[type="email"]:hover,
#msform input[type="date"]:hover,
#msform textarea:hover,
#msform select:hover {
    border-bottom-color: var(--line-dark);
}

#msform input[type="text"]:focus,
#msform input[type="number"]:focus,
#msform input[type="tel"]:focus,
#msform input[type="email"]:focus,
#msform input[type="date"]:focus,
#msform textarea:focus,
#msform select:focus {
    border-bottom-color: var(--black);
}

#msform textarea {
    min-height: 110px;
    resize: vertical;
}


/* Remove number arrows where supported */

#msform input[type="number"]::-webkit-inner-spin-button,
#msform input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

#msform input[type="number"] {
    -moz-appearance: textfield;
}


/* ---------- CONSENTS ---------- */

.consent-section {
    margin: 0 0 34px;
    padding: 0;

    border-top: 1px solid var(--line);
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin: 0;
    padding: 22px 0;

    border-bottom: 1px solid var(--line);

    color: var(--text);
    cursor: pointer;
}

.consent-checkbox {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    margin: 3px 0 0;

    cursor: pointer;
    accent-color: var(--black);
}

.consent-text {
    color: var(--text);

    font-size: 14px;
    line-height: 1.65;
    font-weight: 400;
}

.consent-text a {
    color: var(--black);
    font-weight: 600;

    text-decoration-line: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

.consent-text a:hover,
.consent-text a:focus {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.backend-consent-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Kept for compatibility with other templates that may use these classes. */
.chkLabel {
    display: flex;
    align-items: flex-start;

    padding: 0;
    margin: 0;

    text-indent: 0;
    text-align: left;

    color: var(--text);

    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;

    cursor: pointer;
}

.chkBox {
    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    margin: 2px 10px 0 0;

    position: static;

    cursor: pointer;
    accent-color: var(--black);
}

/* ---------- SMS BLOCK ---------- */

#smsBlock {
    margin: 0 0 10px;
    padding: 30px 0 0;

    border-top: 1px solid var(--line);
}

.sms-header {
    margin-bottom: 20px;

    color: var(--black);

    font-size: 11px;
    line-height: 1.5;
    font-weight: 600;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#smsBlock input[type="number"] {
    margin-top: 4px;
}


/* ---------- BUTTONS ---------- */

#msform .action-button,
.close-oferta-button {
    width: auto;
    min-width: 175px;

    min-height: 48px;

    margin: 0;
    padding: 16px 26px;

    background: var(--black);

    border: 1px solid var(--black);
    border-radius: 0;

    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;

    letter-spacing: 0.13em;
    text-transform: uppercase;

    text-align: center;

    cursor: pointer;

    box-shadow: none;

    -webkit-appearance: none;
    appearance: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

#msform .action-button:hover:not(:disabled),
#msform .action-button:focus:not(:disabled),
.close-oferta-button:hover,
.close-oferta-button:focus {
    background: transparent;
    color: var(--black);
}

#msform .action-button:active:not(:disabled),
.close-oferta-button:active {
    transform: translateY(1px);
}


/* SMS button */

#msform .sms-button {
    margin-bottom: 20px;
}


/* Disabled buttons */

#msform .action-button:disabled {
    background: var(--disabled);
    border-color: var(--disabled);
    color: #ffffff;

    cursor: not-allowed;
    opacity: 1;
}


/* ---------- MAIN ACTION ---------- */

.form-actions {
    margin-top: 32px;

    display: flex;
    justify-content: center;
}

#sendform {
    min-width: 180px;
}


/* ---------- CLOSE OFFER BUTTON ---------- */

.close-oferta-button {
    margin-left: 0;
}


/* ---------- ERRORS ---------- */

.warning {
    margin-top: 18px;

    color: var(--error);

    font-size: 12px;
    line-height: 1.5;
}

.error-msg {
    margin-top: 10px;

    color: var(--error);

    font-size: 12px;
    line-height: 1.5;
}

.input-error {
    background: transparent !important;
    border-bottom-color: var(--error) !important;
}


/* ---------- OFFER / TEXT BLOCK ---------- */

.text-info {
    margin: 20px 0;
    padding: 24px 26px;

    overflow-y: auto;

    background: var(--soft);

    border: 1px solid var(--line);
    border-radius: 0;

    color: #5e5a56;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 13px;
    line-height: 1.7;
    font-weight: 400;

    text-align: left;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.text-info::-webkit-scrollbar {
    width: 6px;
}

.text-info::-webkit-scrollbar-track {
    background: transparent;
}

.text-info::-webkit-scrollbar-thumb {
    background: #c8c4bf;
}

.oferta {
    height: 240px;
}

.success {
    min-height: 260px;
    height: auto;
}

.sms {
    min-height: 100px;
    height: auto;

    overflow-y: visible;
}


/* ---------- SELECT BLOCK ---------- */

.selectBlock {
    margin-bottom: 24px;
    padding: 22px 0;

    border: none;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

.selectBlock label {
    display: block;

    margin-bottom: 10px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.selectBlock select {
    width: 100%;
    margin: 0;
}


/* ---------- GENERIC RADIO SUPPORT ---------- */

label {
    display: block;
}

input[type="radio"] {
    width: 17px;
    height: 17px;

    margin-right: 9px;

    transform: none;

    accent-color: var(--black);
}

.floatBlock {
    margin: 0;
}


/* ---------- LEGACY BUTTON CLASSES ---------- */

.next,
.previous,
.submit {
    vertical-align: middle;
}


/* ==========================================
   MOBILE
   ========================================== */

@media only screen and (max-width: 600px) {

    .form-width {
        width: calc(100% - 24px);
    }

    #msform {
        margin-top: 12px;
        margin-bottom: 28px;
    }

    #msform fieldset {
        padding: 36px 22px 40px;
    }

    .logo {
        height: 60px;
        margin-bottom: 35px;
    }

    .form-intro {
        margin-bottom: 30px;
    }

    .fs-title {
        font-size: 34px;
    }

    .required-hint {
        margin-top: -12px;
        margin-bottom: 16px;
    }

    .form-fields {
        margin-bottom: 35px;
    }

    #smsBlock {
        padding-top: 26px;
    }

    #msform .action-button,
    .close-oferta-button {
        width: 100%;
        min-width: 0;
    }

    #msform .sms-button {
        margin-bottom: 12px;
    }

    .form-actions {
        display: block;
    }

    #sendform {
        width: 100%;
    }

    .text-info {
        padding: 20px;
    }

    .oferta {
        height: 210px;
    }
}


/* ==========================================
   TABLET / DESKTOP
   ========================================== */

@media only screen and (min-width: 601px) {

    .form-width {
        width: min(88%, 720px);
    }
}

@media only screen and (min-width: 1000px) {

    .form-width {
        width: 720px;
    }
}
