.account-form {
    display: grid;
    gap: 24px;
    margin-top: 26px;
}

.account-form-section {
    padding: 24px;
    border: 1px solid #dfe7f2;
    border-radius: 18px;
    background: #ffffff;
}

.account-form-heading {
    margin-bottom: 22px;
}

.account-form-heading h3 {
    margin: 0 0 7px;
    color: #0d1b35;
    font-size: 19px;
    line-height: 1.3;
}

.account-form-heading p {
    margin: 0;
    color: #667895;
    font-size: 14px;
    line-height: 1.6;
}

.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.account-form-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-form-field-full {
    grid-column: 1 / -1;
}

.account-form-field label {
    color: #152541;
    font-size: 14px;
    font-weight: 700;
}

.account-form-field input,
.account-form-field select,
.account-form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d8e1ee;
    border-radius: 12px;
    background: #ffffff;
    color: #13223d;
    font: inherit;
    outline: none;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

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

.account-form-field input:focus,
.account-form-field select:focus,
.account-form-field textarea:focus {
    border-color: #3478f6;
    box-shadow: 0 0 0 4px rgba(52, 120, 246, 0.12);
}

.account-form-field small {
    color: #7b8ba6;
    font-size: 12px;
    line-height: 1.5;
}

.account-form-required {
    color: #d14343;
}

.account-form-phone {
    display: grid;
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 10px;
}

.account-form-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 17px;
    border: 1px solid #dfe7f2;
    border-radius: 14px;
    background: #f9fbfe;
    cursor: pointer;
}

.account-form-switch-row strong {
    display: block;
    margin-bottom: 4px;
    color: #152541;
    font-size: 14px;
}

.account-form-switch-row small {
    display: block;
    color: #72839d;
    font-size: 12px;
    line-height: 1.45;
}

.account-form-switch-row input {
    width: 20px;
    height: 20px;
    accent-color: #3478f6;
}

.account-form-notice {
    display: flex;
    gap: 12px;
    padding: 15px 17px;
    border: 1px solid #d9e8ff;
    border-radius: 14px;
    background: #f3f8ff;
    color: #37557c;
    font-size: 13px;
    line-height: 1.55;
}

.account-form-actions {
    position: sticky;
    bottom: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid #dce5f1;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 35px rgba(18, 34, 61, 0.13);
    backdrop-filter: blur(12px);
}

.account-form-status {
    color: #667895;
    font-size: 13px;
    font-weight: 600;
}

.account-form-buttons {
    display: flex;
    gap: 10px;
}

.account-form-button {
    min-height: 42px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.account-form-button:hover {
    transform: translateY(-1px);
}

.account-form-button-primary {
    background: linear-gradient(135deg, #2563eb, #4388ff);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.account-form-button-secondary {
    border-color: #d5dfed;
    background: #ffffff;
    color: #263955;
}

.account-form-country-help {
    display: none;
    margin-top: 8px;
    padding: 11px 13px;
    border-radius: 11px;
    background: #f5f8fc;
    color: #60738f;
    font-size: 12px;
    line-height: 1.5;
}

.account-form-country-help.visible {
    display: block;
}

@media (max-width: 900px) {
    .account-form-grid,
    .account-form-grid-three {
        grid-template-columns: 1fr;
    }

    .account-form-field-full {
        grid-column: auto;
    }
}

@media (max-width: 620px) {
    .account-form-section {
        padding: 18px;
    }

    .account-form-phone {
        grid-template-columns: 1fr;
    }

    .account-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .account-form-buttons {
        width: 100%;
        flex-direction: column;
    }

    .account-form-button {
        width: 100%;
    }
}
