.s4t-portal {
    padding: 32px 16px 56px;
    background: #f4f7fb;
}

.s4t-portal,
.s4t-portal *,
.s4t-portal *::before,
.s4t-portal *::after {
    box-sizing: border-box;
}

.s4t-portal--success {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.s4t-portal__inner {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    min-width: 0;
}

.s4t-portal__title {
    margin: 0 0 12px;
    color: #122033;
    font-size: 2rem;
    line-height: 1.15;
}

.s4t-portal__title--success,
.s4t-portal__intro--success {
    text-align: center;
}

.s4t-portal__intro {
    margin: 0 0 24px;
    color: #425466;
    line-height: 1.7;
}

.s4t-alert {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
}

.s4t-alert p,
.s4t-alert li {
    margin: 0;
    line-height: 1.6;
}

.s4t-alert__list {
    margin: 0;
    padding-left: 20px;
}

.s4t-alert--success {
    color: #0f5132;
    background: #e9f7ef;
    border-color: #b7e4c7;
}

.s4t-alert--error {
    color: #842029;
    background: #fbeaec;
    border-color: #f1b9bf;
}

.s4t-card {
    padding: 24px 20px;
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(18, 32, 51, 0.08);
}

.s4t-card + .s4t-card,
.s4t-activation + .s4t-card {
    margin-top: 24px;
}

.s4t-card--success {
    padding: 40px 28px;
}

.s4t-section-title {
    margin: 0 0 16px;
    color: #122033;
    font-size: 1.35rem;
    line-height: 1.3;
}

.s4t-sim-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.s4t-choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
    width: 100%;
    padding: 16px;
    border: 1px solid #d9e2ec;
    border-radius: 18px;
    background: #ffffff;
    color: #16324f;
    text-align: left;
    box-shadow: 0 10px 24px rgba(18, 32, 51, 0.06);
}

.s4t-choice-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 14px;
    background: linear-gradient(135deg, #d9e8ff, #edf4ff);
    position: relative;
    overflow: hidden;
}

.s4t-choice-card__media::before,
.s4t-choice-card__media::after {
    content: '';
    position: absolute;
    border-radius: 999px;
}

.s4t-choice-card__media--physical::before {
    inset: 28px 18px 28px 18px;
    border: 2px solid #3b82f6;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(255, 255, 255, 0.4));
}

.s4t-choice-card__media--physical::after {
    width: 44px;
    height: 44px;
    right: 22px;
    bottom: 18px;
    background: rgba(59, 130, 246, 0.18);
}

.s4t-choice-card__media--esim::before {
    inset: 24px 28px;
    border: 2px dashed #2563eb;
    background: rgba(37, 99, 235, 0.08);
}

.s4t-choice-card__media--esim::after {
    width: 56px;
    height: 56px;
    left: 24px;
    top: 20px;
    background: rgba(37, 99, 235, 0.16);
}

.s4t-choice-card__title {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #122033;
    text-align: center;
}

.s4t-choice-card__text {
    display: block;
    color: #425466;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: normal;
    text-align: center;
}

.s4t-choice-card::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 2px solid #9fb3c8;
    background: #ffffff;
    box-shadow: inset 0 0 0 2px #ffffff;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.s4t-choice-card:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.28);
    outline-offset: 2px;
}

.s4t-choice-card:not(.is-active) {
    opacity: 0.88;
}

.s4t-choice-card.is-active {
    color: #102a43;
    background: linear-gradient(180deg, #f3f8ff 0%, #e8f1ff 100%);
    border-color: #2f7df4;
    box-shadow: 0 18px 34px rgba(13, 110, 253, 0.2);
    transform: translateY(-1px);
}

.s4t-choice-card.is-active::after {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-color: #0d6efd;
    background: #0d6efd;
    opacity: 1;
    transform: scale(1);
}

.s4t-choice-card.is-active .s4t-choice-card__title {
    color: #0b3f91;
}

.s4t-choice-card.is-active .s4t-choice-card__text {
    color: #2f4f72;
}

.s4t-helper-text {
    margin-top: 18px;
    color: #425466;
}

.s4t-helper-text p {
    margin: 0 0 10px;
    line-height: 1.6;
}

.s4t-activation__forms {
    margin-top: 24px;
    min-width: 0;
}

.s4t-activation.has-selection .s4t-sim-selector {
    gap: 10px;
    margin-bottom: 4px;
}

.s4t-activation.has-selection .s4t-choice-card {
    gap: 6px;
    padding: 12px 14px;
    min-height: 0;
}

.s4t-activation.has-selection .s4t-choice-card__media {
    display: none;
}

.s4t-activation.has-selection .s4t-choice-card__title {
    font-size: 1rem;
}

.s4t-activation.has-selection .s4t-choice-card__text {
    font-size: 0.875rem;
    line-height: 1.4;
}

.s4t-card--form + .s4t-card--form {
    margin-top: 16px;
}

.s4t-form {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.s4t-form__field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.s4t-form label {
    color: #243b53;
    font-weight: 600;
}

.s4t-form__help {
    margin: 0;
    color: #52667a;
    font-size: 0.95rem;
    line-height: 1.5;
}

.s4t-form input,
.s4t-form textarea,
.s4t-form select,
.s4t-button {
    max-width: 100%;
}

.s4t-form input,
.s4t-form textarea,
.s4t-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #bcccdc;
    border-radius: 12px;
    color: #102a43;
    background: #ffffff;
    font: inherit;
}

.s4t-form input:focus,
.s4t-form textarea:focus {
    outline: 2px solid #72b2ff;
    outline-offset: 1px;
    border-color: #2684ff;
}

.s4t-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 14px 18px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.s4t-button--selector {
    color: #16324f;
    background: #ffffff;
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.s4t-button--selector.is-active {
    color: #16324f;
    background: #eff6ff;
    border-color: #60a5fa;
    box-shadow: 0 14px 28px rgba(13, 110, 253, 0.16);
}

.s4t-button--primary {
    color: #ffffff;
    background: #0d6efd;
}

.s4t-button--primary:hover,
.s4t-button--primary:focus {
    background: #0b5ed7;
}

.s4t-button--secondary {
    color: #16324f;
    background: #e7eef7;
}

.s4t-button--secondary:hover,
.s4t-button--secondary:focus {
    background: #d7e4f3;
}

.s4t-button--success {
    max-width: 320px;
    margin: 0 auto;
}

.s4t-button--whatsapp {
    margin-bottom: 18px;
    color: #5b6c7d;
    background: #dfe7ef;
    cursor: not-allowed;
}

.s4t-button[disabled] {
    opacity: 1;
}

.s4t-success__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dff5e3, #edf9f0);
    position: relative;
}

.s4t-success__icon::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 20px;
    width: 18px;
    height: 32px;
    border-right: 4px solid #198754;
    border-bottom: 4px solid #198754;
    transform: rotate(40deg);
}

.s4t-success__note {
    margin: 0 0 20px;
    color: #52667a;
    text-align: center;
    line-height: 1.6;
}

.s4t-support-toggle {
    display: block;
    min-width: 0;
}

.s4t-support-toggle__summary {
    list-style: none;
}

.s4t-support-toggle__summary::-webkit-details-marker {
    display: none;
}

.s4t-support-toggle__content {
    margin-top: 18px;
    min-width: 0;
}

.s4t-support__intro {
    margin: 0 0 16px;
    color: #425466;
    line-height: 1.7;
}

.s4t-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (min-width: 640px) {
    .s4t-portal {
        padding: 48px 24px 72px;
    }

    .s4t-sim-selector {
        gap: 16px;
    }

    .s4t-choice-card {
        padding: 18px;
    }

    .s4t-activation.has-selection .s4t-choice-card {
        padding: 14px 16px;
    }

    .s4t-card {
        padding: 28px;
    }

    .s4t-card--success {
        padding: 52px 44px;
    }
}

