.fdf-wrap {
    max-width: 560px;
    margin: 24px auto;
    font-family: inherit;
}

.fdf-form {
    background: linear-gradient(145deg, #ffffff, #f7f9ff);
    border: 1px solid rgba(20, 30, 55, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(20, 30, 55, 0.12);
    padding: 28px;
}

.fdf-heading {
    margin-bottom: 22px;
    text-align: center;
}

.fdf-kicker {
    color: #2563eb;
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.fdf-heading h3 {
    color: #111827;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.15;
    margin: 0 0 10px;
}

.fdf-heading p,
.fdf-note {
    color: #5f6b7a;
    font-size: 15px;
    margin: 0;
}

.fdf-amounts {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.fdf-amount input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fdf-amount span {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d9e0ec;
    border-radius: 16px;
    color: #111827;
    cursor: pointer;
    display: flex;
    font-size: 18px;
    font-weight: 800;
    justify-content: center;
    min-height: 58px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fdf-amount.is-selected span,
.fdf-amount input:checked + span {
    border-color: #2563eb;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

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

.fdf-field {
    display: block;
    margin-bottom: 14px;
}

.fdf-field span {
    color: #283445;
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 7px;
}

.fdf-field input {
    background: #ffffff;
    border: 1px solid #d9e0ec;
    border-radius: 14px;
    box-sizing: border-box;
    color: #111827;
    font: inherit;
    min-height: 50px;
    outline: none;
    padding: 12px 14px;
    width: 100%;
}

.fdf-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.fdf-submit {
    background: #2563eb;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
    min-height: 54px;
    padding: 14px 22px;
    transition: background 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.fdf-submit:hover,
.fdf-submit:focus {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.fdf-note {
    margin-top: 12px;
    text-align: center;
}

.fdf-message {
    border-radius: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    padding: 13px 16px;
}

.fdf-message-approved {
    background: #e9f9ef;
    color: #0d6b35;
}

.fdf-message-canceled,
.fdf-message-failed,
.fdf-message-invalid,
.fdf-message-config,
.fdf-message-error {
    background: #fff1f2;
    color: #b42318;
}

@media (max-width: 560px) {
    .fdf-form {
        border-radius: 20px;
        padding: 22px;
    }

    .fdf-amounts,
    .fdf-grid {
        grid-template-columns: 1fr;
    }
}
