/* =========================================================
   Shamil Asadov — Форма записи на консультацию
   Стили точно повторяют дизайн с shamilasadov.ru/go
   ========================================================= */

/* ── Переменные ── */
:root {
    --sf-text:        #2c2c2c;
    --sf-muted:       #8B8068;
    --sf-border:      #d0cec8;
    --sf-bg:          #ffffff;
    --sf-input-bg:    #faf9f7;
    --sf-btn-bg:      #8B8068;
    --sf-btn-hover:   #6e6352;
    --sf-btn-text:    #ffffff;
    --sf-label:       #8B8068;
    --sf-error:       #c0392b;
    --sf-success:     #27ae60;
    --sf-radius:      6px;
    --sf-font:        inherit;
    --sf-gap:         16px;
}

/* ── Секция ── */
.sf-section {
    width: 100%;
    padding: 60px 20px;
    box-sizing: border-box;
    font-family: var(--sf-font);
    color: var(--sf-text);
}

.sf-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

/* ── Левая часть (форма) ── */
.sf-form-wrap {
    flex: 1 1 520px;
    min-width: 0;
}

.sf-form {
    display: flex;
    flex-direction: column;
    gap: var(--sf-gap);
}

/* ── Два поля в ряд ── */
.sf-row.sf-two {
    display: flex;
    gap: var(--sf-gap);
}

.sf-row.sf-two .sf-field {
    flex: 1;
}

/* ── Поля ввода ── */
.sf-field {
    position: relative;
}

.sf-field input,
.sf-field select {
    width: 100%;
    padding: 14px 18px;
    background: var(--sf-input-bg);
    border: 1.5px solid var(--sf-border);
    border-radius: var(--sf-radius);
    font-size: 15px;
    color: var(--sf-text);
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.sf-field input::placeholder {
    color: #aaa8a0;
}

.sf-field input:focus,
.sf-field select:focus {
    border-color: var(--sf-muted);
    box-shadow: 0 0 0 3px rgba(139, 128, 104, 0.12);
    background: #fff;
}

.sf-field input.sf-error,
.sf-field select.sf-error {
    border-color: var(--sf-error);
}

/* ── Кастомный дропдаун ── */
.sf-select-wrap {
    position: relative;
}

.sf-select-wrap select {
    cursor: pointer;
    padding-right: 40px;
}

.sf-select-wrap select option:first-child {
    color: #aaa8a0;
}

.sf-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--sf-muted);
    pointer-events: none;
    line-height: 1;
}

/* ── Кнопка ── */
.sf-submit-wrap {
    margin-top: 4px;
}

.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--sf-btn-bg);
    color: var(--sf-btn-text);
    border: none;
    border-radius: var(--sf-radius);
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    min-width: 240px;
}

.sf-btn:hover {
    background: var(--sf-btn-hover);
}

.sf-btn:active {
    transform: scale(0.98);
}

.sf-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Сообщение об успехе/ошибке ── */
.sf-message {
    padding: 12px 18px;
    border-radius: var(--sf-radius);
    font-size: 14px;
    line-height: 1.5;
}

.sf-message.sf-success {
    background: #edfbf3;
    color: var(--sf-success);
    border: 1px solid #b7efd0;
}

.sf-message.sf-fail {
    background: #fdf0ef;
    color: var(--sf-error);
    border: 1px solid #f5c6c2;
}

/* ── Правая часть (инфо) ── */
.sf-info-wrap {
    flex: 0 0 380px;
    padding-top: 4px;
}

.sf-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--sf-label);
    text-transform: uppercase;
    margin: 0 0 14px;
}

.sf-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    color: var(--sf-text);
    line-height: 1.15;
    margin: 0 0 16px;
    font-family: Georgia, 'Times New Roman', serif;
}

.sf-subtitle {
    font-size: 15px;
    color: #777;
    margin: 0 0 36px;
    line-height: 1.5;
}

/* ── Контакты ── */
.sf-contacts {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sf-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 0;
}

.sf-contact-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-contact-icon svg {
    width: 44px;
    height: 44px;
}

.sf-contact-item > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sf-contact-item strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--sf-text);
    display: block;
}

.sf-contact-item a {
    font-size: 14px;
    color: var(--sf-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.sf-contact-item a:hover {
    color: var(--sf-btn-hover);
    text-decoration: underline;
}

.sf-contact-item span {
    font-size: 14px;
    color: var(--sf-muted);
    display: block;
    line-height: 1.6;
}

.sf-divider {
    height: 1px;
    background: var(--sf-border);
    margin: 0;
}

/* ── Адаптив ── */
@media (max-width: 900px) {
    .sf-container {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .sf-info-wrap {
        flex: none;
        width: 100%;
    }

    .sf-form-wrap {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sf-section {
        padding: 40px 16px;
    }

    .sf-row.sf-two {
        flex-direction: column;
    }

    .sf-btn {
        width: 100%;
        min-width: unset;
    }

    .sf-title {
        font-size: 30px;
    }
}
