/* ============================================ */
/* ОБЩИЕ СТИЛИ ФОРМ (forms.css)                 */
/* ============================================ */

/* ШАПКА ФОРМЫ */
.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.form-header h1 { margin-bottom: 0; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 980px;
    color: var(--apple-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--apple-text);
}

/* СЕКЦИИ ФОРМЫ */
.form-section {
    background: white;
    border-radius: 18px;
    padding: 4px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-section-title {
    color: var(--apple-text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    padding: 16px 0 12px;
    margin-bottom: 0;
}

/* ПОЛЯ ФОРМЫ */
.form-field {
    position: relative;
    padding: 10px 0;
}

.form-field label {
    display: block;
    color: var(--apple-blue);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-size: 17px;
    font-weight: 500;
    color: var(--apple-text);
    transition: all 0.2s ease;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    background: white;
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #999;
    font-weight: 400;
}

.form-field textarea {
    min-height: 70px;
    resize: vertical;
}

/* ДВУХКОЛОНОЧНАЯ РАСКЛАДКА */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* КНОПКА СОХРАНЕНИЯ */
.save-bar {
    position: sticky;
    bottom: 16px;
    margin-top: 24px;
    z-index: 10;
}

.save-btn {
    width: 100%;
    padding: 16px;
    background: var(--apple-blue);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
}

.save-btn:hover {
    background: var(--apple-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 113, 227, 0.4);
}

.save-btn:active { transform: translateY(0); }

/* АДАПТИВНОСТЬ ФОРМ */
@media (max-width: 768px) {
    .form-section { padding: 4px 16px; }
    .save-bar { bottom: 12px; }
}
