.rdn-form {
    --rdn-teal: #0e6f6b;
    --rdn-bg: #f0f0f1;
    max-width: 896px;
}

[x-cloak] {
    display: none !important;
}

.rdn-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px 16px;
    background: var(--rdn-bg);
    border-radius: 12px;
    padding: 24px;
}

.rdn-preset {
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #1a1a1a;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 16px;
}

.rdn-preset.is-selected {
    background: var(--rdn-teal);
    color: #fff;
}

.rdn-preset:hover:not(.is-selected) {
    background: rgba(14, 111, 107, 0.12);
}

.rdn-preset:focus-visible,
.rdn-frequency button:focus-visible,
.rdn-submit:focus-visible {
    outline: 2px solid var(--rdn-teal);
    outline-offset: 2px;
}

.rdn-custom-label,
.rdn-frequency-label {
    display: block;
    font-weight: 600;
    font-family: var(--font-main);
    margin: 20px 0 8px;
}

.rdn-custom {
    align-items: center;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    display: flex;
    gap: 8px;
    padding: 12px 16px;
}

.rdn-custom span {
    color: #888;
}

.rdn-custom input {
    appearance: textfield;
    border: 0;
    flex: 1;
    font-size: 16px;
    outline: 0;
}

.rdn-custom input::-webkit-outer-spin-button,
.rdn-custom input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.rdn-frequency {
    background: var(--rdn-bg);
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 4px;
}

.rdn-frequency button {
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #777;
    cursor: pointer;
    font-weight: 600;
    padding: 12px;
    font-family: var(--font-main);
}

.rdn-frequency button.is-selected {
    background: var(--rdn-teal);
    color: #fff;
}

.rdn-frequency button:hover:not(.is-selected) {
    color: #1a1a1a;
}

.rdn-error {
    color: #b91c1c;
    margin-top: 16px;
}

.rdn-submit {
    background: var(--rdn-teal);
    border: 0;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px;
    padding: 14px;
    width: 100%;
    font-family: var(--font-body);
}

.rdn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.rdn-preset {
    font-family: var(--font-main);
}

@media (max-width: 600px) {
    .rdn-presets {
        grid-template-columns: repeat(2, 1fr);
    }
}
