/* Checkout V2 - Light theme coerente con landing v2 */
* { box-sizing: border-box; }

/* ── Layout ── */
.checkout-v2-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ── Product Card (sinistra) ── */
.checkout-v2-card {
    background: #fff;
    border: 1px solid rgba(200,169,126,0.3);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    position: relative;
}
.checkout-v2-card-img {
    width: 100%;
    height: auto;
    display: block;
}
.checkout-v2-card-body {
    padding: 20px 30px;
}
.checkout-v2-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 25px;
}
.checkout-v2-badge {
    background: #d32f2f;
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: 10px 0;
    font-size: 15px;
    letter-spacing: 1.5px;
}

/* Bonus list */
.checkout-v2-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.checkout-v2-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}
.checkout-v2-list li:last-child {
    border-bottom: none;
}
.checkout-v2-list .check-icon {
    color: #c8a97e;
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.checkout-v2-list .highlight {
    color: #c8a97e;
    font-weight: 700;
}

/* Prezzo */
.checkout-v2-price-area {
    text-align: center;
    padding: 10px 0 10px;
    border-top: 1px solid rgba(200,169,126,0.2);
}
.checkout-v2-price-old {
    font-size: 1.4rem;
    color: #999;
    text-decoration: line-through;
    text-decoration-color: #d32f2f;
    text-decoration-thickness: 2px;
    margin-bottom: 4px;
}
.checkout-v2-price {
    font-size: 3.2rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -1px;
}
.checkout-v2-spots {
    display: inline-block;
    margin-top: 15px;
    background: linear-gradient(135deg, #c8a97e, #a8875e);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 25px;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.checkout-v2-link-coppia {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 0.9rem;
    color: #c8a97e;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
}
.checkout-v2-link-coppia:hover {
    color: #a8875e;
}
.checkout-v2-arrow {
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-left: 4px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8a97e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
    animation: arrowBounce 1.2s ease-in-out infinite;
}
@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* ── Form (destra) ── */
.checkout-v2-form-area {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 35px 30px;
}
.checkout-v2-form-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 25px;
    letter-spacing: 0.5px;
}
.checkout-v2-field {
    margin-bottom: 18px;
}
.checkout-v2-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.checkout-v2-field input[type="text"],
.checkout-v2-field input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    color: #1a1a1a;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.checkout-v2-field input:focus {
    border-color: #c8a97e;
    box-shadow: 0 0 0 3px rgba(200,169,126,0.15);
    background: #fff;
}
.checkout-v2-field input::placeholder {
    color: #bbb;
}
#email-errors {
    color: #d32f2f;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Checkbox */
.checkout-v2-checkboxes {
    margin: 20px 0 25px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.checkout-v2-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.checkout-v2-check-row input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #c8a97e;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.checkout-v2-check-row p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
}
.checkout-v2-check-row a {
    color: #c8a97e;
    font-weight: 600;
    text-decoration: underline;
}

/* Stripe Payment Element */
#payment-element {
    margin-bottom: 24px;
}

/* Bottone pagamento */
.btn-stripe {
    background: linear-gradient(135deg, #c8a97e, #a8875e);
    font-family: Arial, sans-serif;
    color: #fff;
    border-radius: 8px;
    border: 0;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200,169,126,0.3);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.btn-stripe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200,169,126,0.4);
}
.btn-stripe:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

#payment-message {
    color: #d32f2f;
    font-size: 14px;
    line-height: 20px;
    padding-top: 12px;
    text-align: center;
}

.hidden {
    display: none;
}

/* Spinner */
.spinner,
.spinner:before,
.spinner:after {
    border-radius: 50%;
}
.spinner {
    color: #ffffff;
    font-size: 22px;
    text-indent: -99999px;
    margin: 0px auto;
    position: relative;
    width: 20px;
    height: 20px;
    box-shadow: inset 0 0 0 2px;
    transform: translateZ(0);
}
.spinner:before,
.spinner:after {
    position: absolute;
    content: "";
}
.spinner:before {
    width: 10.4px;
    height: 20.4px;
    background: #c8a97e;
    border-radius: 20.4px 0 0 20.4px;
    top: -0.2px;
    left: -0.2px;
    transform-origin: 10.4px 10.2px;
    animation: loading 2s infinite ease 1.5s;
}
.spinner:after {
    width: 10.4px;
    height: 10.2px;
    background: #c8a97e;
    border-radius: 0 10.2px 10.2px 0;
    top: -0.1px;
    left: 10.2px;
    transform-origin: 0px 10.2px;
    animation: loading 2s infinite ease;
}

/* Payment status page (thankyou) */
#payment-status {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    width: 30vw;
    min-width: 500px;
    min-height: 380px;
    align-self: center;
    box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1),
        0px 2px 5px 0px rgba(50, 50, 93, 0.1), 0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
    border-radius: 7px;
    padding: 40px;
    opacity: 0;
    animation: fadeInAnimation 1s ease forwards;
}

@keyframes loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes fadeInAnimation {
    to { opacity: 1; }
}

/* ── Thank You Page ── */
.thankyou-v2-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}
.thankyou-v2-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c8a97e, #a8875e);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}
.thankyou-v2-icon svg {
    width: 40px;
    height: 40px;
    fill: #fff;
}
.thankyou-v2-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #c8a97e;
    font-weight: 600;
    margin-bottom: 10px;
}
.thankyou-v2-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 15px;
    letter-spacing: -0.5px;
}
.thankyou-v2-subtitle {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin: 0 0 35px;
}
.thankyou-v2-card {
    background: #fff;
    border: 1px solid rgba(200,169,126,0.3);
    border-radius: 12px;
    padding: 35px 30px;
    margin-bottom: 30px;
}
.thankyou-v2-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin: 0 0 20px;
}
.thankyou-v2-card p:last-child {
    margin-bottom: 0;
}
.thankyou-v2-card strong {
    color: #1a1a1a;
}
.thankyou-v2-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}
.thankyou-v2-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,211,102,0.4);
}
.thankyou-v2-cta svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}
.thankyou-v2-footer-note {
    margin-top: 30px;
    font-size: 0.85rem;
    color: #999;
}
.thankyou-v2-footer-note a {
    color: #c8a97e;
    font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .checkout-v2-wrapper {
        grid-template-columns: 1fr;
        padding: 12px 10px;
        gap: 15px;
    }
    .checkout-v2-card {
        border-radius: 10px;
    }
    .checkout-v2-card-body {
        padding: 15px 14px;
    }
    .checkout-v2-card-title {
        font-size: 1.15rem;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }
    .checkout-v2-badge {
        padding: 7px 0;
        font-size: 13px;
    }
    .checkout-v2-list {
        margin-bottom: 0;
    }
    .checkout-v2-list li {
        font-size: 0.88rem;
        padding: 5px 0;
    }
    .checkout-v2-price-area {
        padding-top: 8px;
    }
    .checkout-v2-price-old {
        font-size: 1.15rem;
    }
    .checkout-v2-price {
        font-size: 2.2rem;
    }
    .checkout-v2-spots {
        font-size: 0.85rem;
    }
    .checkout-v2-link-coppia {
        font-size: 0.85rem;
    }
    .checkout-v2-form-area {
        padding: 20px 14px;
        border-radius: 10px;
    }
    .checkout-v2-form-title {
        font-size: 1.15rem;
        margin-bottom: 15px;
    }
    #payment-status {
        width: 90vw;
        min-width: initial;
    }
}
