

/* Start:/local/components/custom/appointment.form/templates/.default/style.css?178248275910222*/
/* ═══════════════════════════════════════════════════════════
   custom:appointment.form — стили компонента формы заявки
   Дизайн-система: vetotvet.com
   ═══════════════════════════════════════════════════════════ */

/* ── Переменные ──────────────────────────────────────────── */
:root {
    --af-accent:       #1f6fbe;       /* основной синий сайта */
    --af-accent-dark:  #155ea0;       /* hover синий */
    --af-orange:       #E67725;       /* акцент сайта (хлебные крошки и т.д.) */
    --af-error:        #d32f2f;       /* красный ошибки */
    --af-success:      #2e7d32;       /* зелёный успеха */
    --af-border:       #d0d7e3;       /* рамка полей */
    --af-border-focus: #1f6fbe;       /* рамка при фокусе */
    --af-bg:           #ffffff;       /* фон секции */
    --af-card-shadow:  9px 9px 0px 0px rgb(31 111 190); /* тень карточки сайта */
    --af-radius:       16px;          /* скругление карточки */
    --af-radius-input: 10px;          /* скругление полей */
    --af-radius-btn:   10px;          /* скругление кнопки */
    --af-font:         inherit;
}

/* ── Секция ──────────────────────────────────────────────── */
.af-section {
    padding: 40px 0 60px;
}

.af-section__inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Заголовок ───────────────────────────────────────────── */
.af-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    color: #111;
    margin: 0 0 10px;
    text-align: center;
}

.af-subtitle {
    font-size: 15px;
    color: #666;
    text-align: center;
    margin: 0 0 32px;
    line-height: 1.5;
}

/* ── Карточка формы ──────────────────────────────────────── */
.af-form {
    background: var(--af-bg);
    border-radius: var(--af-radius);
    box-shadow: var(--af-card-shadow);
    border: 1px solid #1f6fbe47;
    padding: 36px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Поле ────────────────────────────────────────────────── */
.af-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.af-field__label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    cursor: pointer;
}

.af-field__required {
    color: var(--af-orange);
    margin-left: 2px;
}

.af-field__input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 2px solid var(--af-border);
    border-radius: var(--af-radius-input);
    font-size: 15px;
    font-family: var(--af-font);
    color: #111;
    background: #fafbfd;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none;
    appearance: none;
}

.af-field__input::placeholder {
    color: #aab2c0;
}

.af-field__input:hover {
    border-color: #b0bbcc;
    background: #fff;
}

.af-field__input:focus {
    border-color: var(--af-border-focus);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(31, 111, 190, 0.15);
}

.af-field__input--invalid {
    border-color: var(--af-error) !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12) !important;
    background: #fff8f8 !important;
}

.af-field__error {
    font-size: 12px;
    color: var(--af-error);
    min-height: 16px;
    line-height: 1.3;
}

/* ── Телефон ─────────────────────────────────────────────── */
.af-field__input--phone {
    letter-spacing: 0.04em;
}

/* ── Чекбокс ─────────────────────────────────────────────── */
.af-field--checkbox {
    gap: 4px;
}

.af-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.af-checkbox__input {
    /* Скрываем нативный чекбокс */
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.af-checkbox__box {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 2px solid var(--af-border);
    border-radius: 5px;
    background: #fafbfd;
    transition: border-color .18s, background .18s, box-shadow .18s;
    position: relative;
}

/* Галочка через псевдоэлемент */
.af-checkbox__box::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0;
    transition: opacity .15s;
}

.af-checkbox__input:checked + .af-checkbox__box {
    background: var(--af-accent);
    border-color: var(--af-accent);
}

.af-checkbox__input:checked + .af-checkbox__box::after {
    opacity: 1;
}

.af-checkbox:hover .af-checkbox__box {
    border-color: var(--af-accent);
    box-shadow: 0 0 0 3px rgba(31, 111, 190, 0.12);
}

.af-checkbox__input:focus-visible + .af-checkbox__box {
    outline: 2px solid var(--af-accent);
    outline-offset: 2px;
}

/* Ошибка чекбокса */
.af-field--checkbox-invalid .af-checkbox__box {
    border-color: var(--af-error);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

.af-checkbox__text {
    font-size: 14px;
    color: #444;
    line-height: 1.45;
}

.af-checkbox__link {
    color: var(--af-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s;
}

.af-checkbox__link:hover {
    color: var(--af-orange);
}

/* ── Кнопка отправки ─────────────────────────────────────── */
.af-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 8px;
}

.af-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--af-radius-btn);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--af-font);
    text-decoration: none;
    transition: background .2s, transform .15s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}

.af-btn--submit {
    background: var(--af-accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(31, 111, 190, 0.35);
    width: 100%;
}

.af-btn--submit:hover {
    background: var(--af-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 111, 190, 0.45);
}

.af-btn--submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(31, 111, 190, 0.3);
}

/* Спиннер */
.af-btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: afSpin .7s linear infinite;
    flex-shrink: 0;
}

.af-btn--loading .af-btn__text {
    opacity: .8;
}

.af-btn--loading .af-btn__spinner {
    display: inline-block;
}

.af-btn--loading {
    pointer-events: none;
    cursor: wait;
}

@keyframes afSpin {
    to { transform: rotate(360deg); }
}

/* Пометка обязательных */
.af-required-note {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin: 0;
}

.af-required-note span {
    color: var(--af-orange);
}

/* ── Уведомление об ошибке (серверное) ───────────────────── */
.af-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.af-alert--error {
    background: #ffebee;
    color: var(--af-error);
    border: 1px solid #ffcdd2;
}

/* ── Блок успеха ─────────────────────────────────────────── */
.af-success {
    background: #fff;
    border-radius: var(--af-radius);
    box-shadow: var(--af-card-shadow);
    border: 1px solid #1f6fbe47;
    padding: 48px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: afFadeUp .4s ease both;
}

.af-success__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.af-success__text {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0;
    line-height: 1.4;
}

@keyframes afFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Адаптив ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .af-form {
        padding: 24px 20px 28px;
    }

    .af-success {
        padding: 32px 20px;
    }

    .af-title {
        font-size: 22px;
    }

    .af-subtitle {
        font-size: 14px;
    }

    .af-btn--submit {
        padding: 13px 20px;
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .af-section__inner {
        padding: 0 12px;
    }

    .af-form {
        padding: 20px 14px 24px;
        gap: 16px;
    }
}

/* End */
/* /local/components/custom/appointment.form/templates/.default/style.css?178248275910222 */
