.cdp-page {
    padding-bottom: 4rem;
}

.cdp-completion-card,
.cdp-account-card {
    background: #fff;
    border: 3px solid #111;
    box-shadow: 8px 8px 0 #111;
    margin: 0 auto 2rem;
    max-width: 820px;
    padding: clamp(1.25rem, 4vw, 2.25rem);
}

.cdp-completion-card__intro {
    border-bottom: 2px dashed #d1d5db;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
}

.cdp-completion-card__badge {
    background: #ffe600;
    border: 2px solid #111;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    margin-bottom: 0.85rem;
    padding: 0.3rem 0.65rem;
    text-transform: uppercase;
}

.cdp-completion-card h1 {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.cdp-completion-card__intro p,
.cdp-account-card__header p {
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

.cdp-account-card {
    margin: 1.5rem 0 0;
    max-width: none;
}

.cdp-account-card__header {
    align-items: flex-start;
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.cdp-account-card__header h3 {
    font-size: 1.15rem;
    font-weight: 900;
    margin: 0 0 0.35rem;
}

.cdp-account-card__icon {
    align-items: center;
    background: #fff1f6;
    border: 2px solid #111;
    display: inline-flex;
    flex: 0 0 42px;
    font-size: 1.25rem;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.cdp-registration {
    background: #fff8fc;
    border: 2px solid #111;
    margin: 1.25rem 0;
    padding: 1rem;
}

.cdp-registration__heading {
    align-items: flex-start;
    display: flex;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.cdp-registration__heading > span {
    font-size: 1.35rem;
    line-height: 1.2;
}

.cdp-registration__heading strong {
    display: block;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.cdp-registration__heading p {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0;
}

.cdp-form,
.cdp-fields {
    display: grid;
    gap: 1.15rem;
}

.cdp-field {
    display: grid;
    gap: 0.4rem;
}

.cdp-field > label,
.cdp-fieldset > legend {
    color: #111;
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0;
}

.cdp-field input,
.cdp-field select,
.cdp-field textarea {
    background: #fff;
    border: 2px solid #111;
    border-radius: 0;
    color: #111;
    min-height: 46px;
    padding: 0.7rem 0.8rem;
    width: 100%;
}

.cdp-field input:focus,
.cdp-field select:focus,
.cdp-field textarea:focus {
    border-color: #ff007f;
    box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.16);
    outline: 0;
}

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

.cdp-fieldset {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.cdp-help {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.55;
    margin: 0;
}

.cdp-methods {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.65rem;
}

.cdp-method {
    align-items: flex-start;
    background: #fff;
    border: 2px solid #d1d5db;
    cursor: pointer;
    display: flex;
    gap: 0.65rem;
    margin: 0;
    min-height: 92px;
    padding: 0.85rem;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.cdp-method:hover {
    border-color: #111;
    transform: translateY(-1px);
}

.cdp-method:has(input:checked) {
    background: #fff1f6;
    border-color: #111;
    box-shadow: 4px 4px 0 #111;
}

.cdp-method input {
    accent-color: #ff007f;
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

.cdp-method__icon {
    flex: 0 0 auto;
    font-size: 1.35rem;
    line-height: 1;
}

.cdp-method strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.cdp-method small {
    color: #6b7280;
    display: block;
    font-size: 0.76rem;
    line-height: 1.45;
}

.cdp-delivery-panel {
    background: #f9fafb;
    border-left: 4px solid #ffe600;
    padding: 1rem;
}

.cdp-delivery-panel[hidden] {
    display: none;
}

.cdp-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cdp-error {
    color: #b91c1c;
    font-size: 0.8rem;
    font-weight: 700;
}

.cdp-submit {
    align-items: center;
    background: #111;
    border: 2px solid #111;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 900;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.4rem;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    width: 100%;
}

.cdp-submit:hover {
    background: #ffe600;
    color: #111;
    transform: translateY(-1px);
}

.cdp-form__actions {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.cdp-form__actions .cdp-submit {
    flex: 1 1 auto;
}

.cdp-logout {
    color: #6b7280;
    flex: 0 0 auto;
    font-size: 0.82rem;
    text-decoration: underline;
}

.cdp-admin {
    display: grid;
    gap: 1rem;
}

.cdp-admin .cdp-fields {
    gap: 1rem;
}

.cdp-admin .cdp-method {
    box-shadow: none;
}

@media (max-width: 767.98px) {
    .cdp-completion-card,
    .cdp-account-card {
        box-shadow: 4px 4px 0 #111;
        padding: 1rem;
    }

    .cdp-methods,
    .cdp-grid {
        grid-template-columns: 1fr;
    }

    .cdp-form__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cdp-logout {
        text-align: center;
    }
}
