/* ====== PAYMENT LAYOUT ====== */

/* Contenedor que ocupa toda la pantalla y centra el formulario */
.body-container {
    display: flex;
    justify-content: center; /* centra horizontal */
    /*align-items: center;     */
    min-height: 30vh;       
    padding: 2rem 0;
    background-color: #f8f9fa; /* opcional */
}

/* Formulario responsive */
.form-container-tdd {
    width: 30%;               /* 30% en escritorio */
    max-width: 400px;         /* no se haga gigante en pantallas muy grandes */
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}





/* T赤tulo */
.form-title {
    margin-bottom: 16px;
    color: var(--color-text);
    font-size: 1.6rem;
    font-weight: 600;
}

/* Total */
.form-container p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

/* Stripe card input */
.card-input {
    border: 1px solid #d0d5dd;
    padding: 14px;
    border-radius: 8px;
    background-color: #fff;
    margin-bottom: 18px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card-input:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

/* Bot車n */
.btn-submit {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s;
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--color-secondary);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Error Stripe */
.error-message {
    color: #d92d20;
    margin-top: 8px;
    font-size: 0.9rem;
    min-height: 18px;
}


}

/* ================================
   MOBILE STRIPE FIX (FULL WIDTH)
================================ */
@media (max-width: 768px) {

    /* Formulario ocupa casi toda la pantalla */
    .form-container-tdd {
        width: 95% !important;
        max-width: none !important;
        padding: 1.5rem;
    }

    /* Stripe wrapper ocupa todo */
    #card-element {
        width: 100% !important;
    }

    /* El input visual de Stripe */
    .card-input {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* El iframe interno de Stripe */
    .card-input iframe {
        width: 100% !important;
        min-width: 100% !important;
    }

    /* Body container no tan centrado vertical */
    .body-container {
        align-items: flex-start;
        padding-top: 40px;
    }
}


