/* Step 6 payment UI skin - scoped to avoid global wizard drift. */
.step-6-payment-ui {
    --step6-fox: #ff7a1a;
    --step6-fox-dark: #e85d04;
    --step6-fox-soft: #fff4ea;
    --step6-fox-line: #ffd5b0;
    --step6-ink: #1f2937;
    --step6-ink-mid: #4b5563;
    --step6-ink-light: #9ca3af;
    --step6-line: #e5e7eb;
    --step6-line-soft: #f3f4f6;
    color: var(--step6-ink);
    font-family: Inter, Poppins, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.step-6-payment-ui .payment-option-card {
    background: #fff;
    border-color: var(--step6-line);
    border-radius: 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.step-6-payment-ui .payment-option-card:hover {
    border-color: var(--step6-fox-line);
}

.step-6-payment-ui .payment-option-card.border-orange-500 {
    border-color: var(--step6-fox) !important;
    box-shadow: 0 0 0 3px rgb(255 122 26 / 12%);
}

.step-6-payment-ui .payment-option-card h4 {
    color: var(--step6-ink);
    font-size: 1rem;
    line-height: 1.5rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.step-6-payment-ui .payment-option-card .flex-1 > div:first-child {
    align-items: flex-start;
    container-type: inline-size;
    min-width: 0;
}

.step-6-payment-ui .payment-option-card .flex-1 > div:first-child > span {
    flex: 0 1 auto;
    max-width: 100%;
    white-space: normal;
}

@container (max-width: 25rem) {
    .step-6-payment-ui .payment-option-card .flex-1 > div:first-child > span {
        flex-basis: 100%;
    }
}

.step-6-payment-ui .payment-option-card .text-gray-700 {
    color: var(--step6-ink-mid);
}

.step-6-payment-ui .step6-description {
    color: var(--step6-ink-mid);
    font-size: 0.875rem;
    line-height: 1.625;
}

.step-6-payment-ui .payment-option-card .text-sm.font-medium {
    color: var(--step6-ink-light);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1rem;
    text-transform: uppercase;
}

.step-6-payment-ui .payment-option-card .rounded-full.text-xs {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1rem;
    padding: 0.125rem 0.5rem;
    text-transform: uppercase;
}

.step-6-payment-ui .payment-radio-dot {
    border-color: var(--step6-line);
}

.step-6-payment-ui .payment-radio-dot.border-orange-500 {
    border-color: var(--step6-fox) !important;
}

.step-6-payment-ui #payment-selection-summary {
    background: var(--step6-fox-soft);
    border-color: var(--step6-fox-line);
}

.step-6-payment-ui #payment-selection-summary .text-orange-800,
.step-6-payment-ui #payment-selection-summary .text-orange-900 {
    color: var(--step6-fox-dark);
}

.step-6-payment-ui .step6-example-label {
    color: var(--step6-ink-light);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1rem;
    text-transform: uppercase;
}

.step-6-payment-ui .step6-example-box {
    background: var(--step6-line-soft);
    border-color: var(--step6-line);
}

.step-6-payment-ui .step6-legal-footer {
    border-top: 1px solid var(--step6-line);
    color: var(--step6-ink-light);
    font-size: 0.6875rem;
    line-height: 1.5;
}

@media (max-width: 639px) {
    .step-6-form-column,
    .step-6-form-shell,
    #form-iscrizione-steps,
    #form-iscrizione-steps .form-step,
    #form-iscrizione-steps .step-6-payment-ui {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .step-6-payment-ui {
        overflow-x: hidden;
    }

    .step-6-payment-ui .overflow-x-auto {
        max-width: 100%;
    }

    .step-6-payment-ui .payment-option-card > .flex {
        gap: 0.75rem;
    }

    .step-6-payment-ui .payment-option-card h4 {
        max-width: 100%;
    }
}
