/* === ФОРМЫ === */
.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.3px;
}

/* === ИНПУТЫ === */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    font-family: var(--font);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-white);
    transition: all var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:disabled,
textarea:disabled,
select:disabled {
    background: var(--bg);
    color: var(--text-muted);
    cursor: not-allowed;
    border-color: var(--border);
}

textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.6;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7c59' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* === ПОДСКАЗКА ПОД ПОЛЕМ === */
.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    padding-left: 2px;
}

/* === ОШИБКА ВАЛИДАЦИИ === */
.form-error {
    font-size: 12px;
    color: var(--danger);
    font-weight: 500;
    padding-left: 2px;
}

/* === ГРУППА ПОЛЕЙ В РЯД === */
.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

/* === RESET FOCUS FOR ALL INPUTS === */
input,
select,
textarea,
button {
    outline: none;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
}

/* === Нові типи полів === */
.form-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.form-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s ease;
}

.form-radio-item:has(input:checked) {
    border-color: var(--brand);
    background: rgba(45, 80, 22, 0.06);
}

.form-radio-item input[type="radio"] {
    accent-color: var(--brand);
    width: 18px;
    height: 18px;
}

.form-checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.form-checkbox-field input[type="checkbox"] {
    accent-color: var(--brand);
    width: 20px;
    height: 20px;
}

.form-photo-field {
    display: flex;
    flex-direction: column;
}

.form-photo-preview img {
    border: 1px solid var(--border);
}

.form-location-field {
    display: flex;
    gap: 8px;
    align-items: center;
}

.form-location-field input {
    flex: 1;
}

.form-location-btn {
    white-space: nowrap;
    flex-shrink: 0;
}