
/* =================================
   Базовый блок: .dk-section-form
   ================================= */

/* Контейнер секции */
.dk-section-form {
    margin-bottom: 40px !important;
    padding-left: 20px;
    padding-right: 20px;
}

.dk-section-form__container {
    max-width: 1228px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 60px !important;
    margin-bottom: 40px !important;
    border-top: 2px solid #006a5c; /* замените на ваш цвет fm-green */
}

@media (min-width: 768px) {
    .dk-section-form__container {
        margin-top: 80px !important;
    }
}

/* Заголовки */
.dk-section-form__title {
    font-weight: 600 !important;
    font-size: 36px !important;
    color: #006a5c !important;
    padding-top: 20px !important;
    margin-bottom: 12px !important;
}

.dk-section-form__description {
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #006a5c !important;
    margin-bottom: 32px !important;
}

/* Скрытые элементы */
.dk-section-form__hidden {
    display: none;
}

/* =================================
   Элементы формы
   ================================= */

/* Группа полей */
.dk-section-form__group {
    margin-bottom: 32px !important;
}

.dk-section-form__label {
    display: block;
    margin-bottom: 8px !important;
    padding-left: 4px !important;
    font-size: 12px !important;
}

/* Обертка для относительного позиционирования (кастомный select) */
.dk-section-form__select-wrapper {
    position: relative;
}

/* Базовые стили для input, select, textarea */
.dk-section-form__input,
.dk-section-form__select {
    width: 100%;
    padding: 11px 12px !important;
    font-size: 16px !important;
    border: 1px solid #000000;
    border-radius: 6px !important;
    transition: all 0.2s ease;
}

.dk-section-form__select {
    padding-right: 32px !important;
    appearance: none;
    -webkit-appearance: none;
    background-color: white;
    cursor: pointer;
}

.dk-section-form__input:focus,
.dk-section-form__select:focus,
.dk-section-form__textarea:focus {
    outline: none !important;
    border-color: #006a5c !important;
}

.dk-section-form__textarea {
    resize: vertical;
    width: 100%;
    padding: 11px 12px !important;
    font-size: 16px !important;
    border: 1px solid #000000;
    border-radius: 6px !important;
    transition: all 0.2s ease;
    min-height: 32px !important;
}

/* Кастомная стрелка для select */
.dk-section-form__select-icon {
    position: absolute;
    inset: 0 8px 0 auto;
    display: flex;
    align-items: center;
    pointer-events: none;
    color: #006a5c;
}

.dk-section-form__select-icon svg {
    width: 16px;
    height: 16px;
}

/* Сетка для полей (адаптивная) */
.dk-section-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px
}

@media (min-width: 360px) {
    .dk-section-form__grid--cols-2 {
     gap: 64px !important;
    }
}

@media (min-width: 640px) {
    .dk-section-form__grid--cols-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px !important;
    }
    .dk-section-form__textarea {
     margin-top: 0px
    }
}

@media (min-width: 1280px) {
    .dk-section-form__grid--cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    .dk-section-form__textarea {
     margin-top: 0px
    }
}

.dk-section-form__grid--form-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px !important;
}

@media (min-width: 768px) {
    .dk-section-form__grid--form-footer {
        grid-template-columns: 30% 1fr;
    }
}

/* Специальный контейнер для поля с файлом */
.dk-section-form__file-container {
    position: relative;
}

.dk-section-form__file-input {
    width: 100%;
    padding: 11px 12px !important;
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0); /* скрывает текст, поверх будет .file-fake-text */
    border: 1px solid #000000;
    border-radius: 6px !important;
    cursor: pointer;
    /*opacity: 0;*/
    position: relative;
    z-index: 2;
}

.dk-section-form__file-fake-text {
    position: absolute;
    left: 12px;
    top: 14px;
/*transform: translateY(-50%);*/ 
    pointer-events: none;
    color: #000000;
    z-index: 1;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 40px);
}

.dk-section-form__file-icon {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 20;
    width: 24px;
    height: 24px;
    stroke: #006a5c;
    stroke-width: 2;
    pointer-events: none;
}

.dk-section-form__file-hint {
    position: absolute;
    font-size: 12px !important;
    display: block;
    top: 48px;
}

/* Чекбоксы */
.dk-section-form__checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dk-section-form__checkbox-label {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
}

.dk-section-form__checkbox {
    margin-right: 4px;
    accent-color: #006a5c;
}

.dk-section-form__checkbox-text,
.dk-section-form__link {
    font-size: 16px !important;
}

.dk-section-form__link {
    color: #006a5c !important;
}

.dk-section-form__link:hover {
    text-decoration: underline;
}

/* Кнопка */
.dk-section-form__button {
    padding: 8px 24px;
    height: 48px;
    border-radius: 6px;
    background-color: #006a5c;
    border: 2px solid #006a5c;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dk-section-form__button:hover {
    background-color: white !important;
}

.dk-section-form__button-text {
    font-weight: 600 !important;
    font-size: 16px !important;
    color: white !important;
}

.dk-section-form__button:hover .dk-section-form__button-text {
    color: #006a5c !important;
}

.dk-section-form__button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Сообщения */
.dk-section-form__success {
    color: #16a34a;
    font-size: 12px !important;
    margin-top: 20px !important;
}

.dk-section-form__error {
    color: #dc2626;
    font-size: 12px !important;
    margin-top: 20px !important;
}

/* Дополнительный текст */
.dk-section-form__note {
    display: block;
    margin-top: 32px;
    font-size: 16px !important;
}

.dk-section-form__email-link {
    color: #006a5c !important;
}

.dk-section-form__email-link:hover {
    text-decoration: underline;
}
    
