/* Pagina: Test Stripe — Servizi Visti con Pagamento Online
 * Creata: 2026-03-20
 */

/* ============================================
   HERO BACKGROUND
   ============================================ */
.test-stripe .hero {
    background-image: linear-gradient(rgba(31, 81, 132, 0.7), rgba(31, 81, 132, 0.7)),
                      url('/assets/images/test-stripe/hero.jpg');
    min-height: 420px;
}

/* ============================================
   INTRO TEXT
   ============================================ */
.test-stripe__intro {
    text-align: center;
    color: var(--color-text-secondary, #6c757d);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PRICING GRID
   ============================================ */
.test-stripe__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.test-stripe__grid .card-price {
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.test-stripe__grid .card-price:hover {
    border-color: var(--color-primary, #1f5184);
    box-shadow: 0 4px 16px rgba(31, 81, 132, 0.15);
}

.test-stripe__grid .card-price.test-stripe__card--selected {
    border-color: var(--color-accent, #28a745);
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.2);
}

/* ============================================
   CHECKOUT SECTION
   ============================================ */
.test-stripe__checkout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.test-stripe__checkout-summary,
.test-stripe__checkout-form {
    background: #ffffff;
    border: 1px solid var(--color-border, #dee2e6);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.test-stripe__checkout-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary, #1f5184);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-border, #dee2e6);
}

.test-stripe__checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1rem;
}

.test-stripe__checkout-service {
    font-weight: 500;
    color: var(--color-text, #212529);
}

.test-stripe__checkout-price {
    font-weight: 700;
    color: var(--color-primary, #1f5184);
    font-size: 1.1rem;
}

.test-stripe__checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 0;
    margin-top: 0.75rem;
    border-top: 2px solid var(--color-primary, #1f5184);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-primary, #1f5184);
}

.test-stripe__checkout-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 1.25rem;
}

/* ============================================
   FORM FIELDS
   ============================================ */
.test-stripe__field {
    margin-bottom: 1.25rem;
}

.test-stripe__field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text, #212529);
    margin-bottom: 0.4rem;
}

.test-stripe__field input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--color-border, #dee2e6);
    border-radius: 0.5rem;
    background: #ffffff;
    color: var(--color-text, #212529);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.test-stripe__field input:focus {
    outline: none;
    border-color: var(--color-primary, #1f5184);
    box-shadow: 0 0 0 3px rgba(31, 81, 132, 0.15);
}

/* Stripe card element */
.test-stripe__card-element {
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--color-border, #dee2e6);
    border-radius: 0.5rem;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.test-stripe__card-element.StripeElement--focus {
    border-color: var(--color-primary, #1f5184);
    box-shadow: 0 0 0 3px rgba(31, 81, 132, 0.15);
}

.test-stripe__card-element.StripeElement--invalid {
    border-color: #dc3545;
}

.test-stripe__card-errors {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    min-height: 1.2em;
}

/* Submit button */
.test-stripe__submit {
    width: 100%;
    margin-top: 0.5rem;
}

.test-stripe__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Payment result message */
.test-stripe__result {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    display: none;
}

.test-stripe__result--success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.test-stripe__result--error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
    .test-stripe__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .test-stripe__checkout {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .test-stripe__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
