/* Стили форм: вопрос спикеру и отзыв (часто на тёмном фоне секции).
   Используют переменные из style.css (:root). */

.register-form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 20px;
    backdrop-filter: blur(10px); /* лёгкое «матовое» стекло */
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.label-field {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.label-field--on-dark {
    color: #f0ecff;
}

.form-fieldset {
    border: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.form-fieldset legend.label-field {
    margin-bottom: 12px;
}

.form-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    justify-content: center;
    align-items: center;
}

.form-radio-row label {
    cursor: pointer;
    font-size: 18px;
    color: #f0ecff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.form-radio-row input[type="radio"] {
    width: 1.1em;
    height: 1.1em;
    accent-color: #c4b5fd;
}

/* Сообщения формы (ошибка / подсказка) */
.form-msg {
    width: 100%;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.45;
    box-sizing: border-box;
}

.form-msg--error {
    background: rgba(254, 226, 226, 0.95);
    color: #7f1d1d;
    border: 1px solid #f87171;
}

.form-msg--error.form-msg--on-dark {
    background: rgba(127, 29, 29, 0.55);
    color: #fecaca;
    border-color: #f87171;
}

.form-msg--info {
    background: rgba(255, 255, 255, 0.12);
    color: #f5f3ff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.input-field {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(242, 180, 65, 0.2);
    background: #ffffff;
}

.input-field:focus-visible {
    outline: 2px solid #ca8a04;
    outline-offset: 2px;
}

.input-field::placeholder {
    color: #6b7280;
}

.register-form button {
    width: 100%;
    margin-top: 8px;
    font-size: 18px;
}

.register-form button:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 3px;
}

/* Сообщение после успешной отправки (если показывается внутри формы) */
.success-message {
    padding: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    margin-top: 20px;
}

/* Текст о политике и согласии под формой */
.form-consent {
    margin: 0;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
}

.form-consent--on-dark {
    color: rgba(255, 255, 255, 0.52);
}

.form-consent a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-consent--on-dark a {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.form-consent a:hover {
    text-decoration-thickness: 2px;
}

.form-consent a:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 2px;
}

@media (max-width: 600px) {
    .register-form {
        padding: 20px; /* уже экран — меньше поля */
    }
}
