/* Селекторы с form.atp — чтобы перебить стили темы для полей и кнопок. */
.atp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}
form.atp {
    display: flex;
    flex-direction: column;
    max-width: 460px;
    margin: 24px 0;
    padding: 24px;
    border: 1px solid #dcdfe4;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}
.atp-grid form.atp {
    max-width: none;
    margin: 0;
}
form.atp .atp-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}
form.atp .atp-sum {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 700;
}
form.atp .atp-field {
    display: block;
    margin: 0 0 14px;
}
form.atp .atp-field[hidden] {
    display: none;
}
form.atp .atp-field span {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #555;
}
form.atp .atp-field input,
form.atp .atp-field select {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #c3c7cf;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    box-sizing: border-box;
}
form.atp .atp-field input:focus,
form.atp .atp-field select:focus {
    border-color: #8a6d1b;
    outline: 2px solid rgba(236, 197, 95, .45);
}
/* Кнопка прижата к низу — у блоков разной высоты кнопки на одной линии. */
form.atp button.atp-btn {
    width: 100%;
    min-height: 48px;
    margin-top: auto;
    color: #2b2410;
    font-weight: 700;
    cursor: pointer;
}
form.atp button.atp-btn[disabled] {
    opacity: .6;
    cursor: default;
}
.atp-note {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
}
.atp-note--ok {
    background: #e6f4ea;
    color: #1a7f37;
}
.atp-note--err {
    background: #fdecea;
    color: #b3261e;
}
form.atp .atp-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
