/* ============================================
   AQR Purchase Carousel & Pricing
   ============================================ */

/* --- Progress Bar --- */
.aqr-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
}

.aqr-progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.aqr-progress__step--active,
.aqr-progress__step--completed {
    opacity: 1;
}

.aqr-progress__number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2a2a2a;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #444;
    transition: all 0.3s;
}

.aqr-progress__step--active .aqr-progress__number {
    background: #c49b5c;
    color: #141414;
    border-color: #c49b5c;
}

.aqr-progress__step--completed .aqr-progress__number {
    background: #22a563;
    color: #fff;
    border-color: #22a563;
}

.aqr-progress__label {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aqr-progress__line {
    width: 60px;
    height: 2px;
    background: #333;
    margin: 0 12px;
    margin-bottom: 20px;
}

/* --- Carousel Wrapper --- */
.aqr-carousel-wrapper {
    padding-bottom: 80px;
}

/* --- Steps --- */
.aqr-steps {
    position: relative;
    overflow: hidden;
}

.aqr-step {
    display: none;
    animation: aqrFadeSlideIn 0.4s ease-out;
}

.aqr-step--active {
    display: block;
}

@keyframes aqrFadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Plan Card (Step 1) --- */
.aqr-plan-card {
    background: #1f1f1f;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    border: 1px solid #333;
}

.aqr-plan-card__title {
    font-size: 28px;
    color: #fff;
    margin-bottom: 16px;
}

.aqr-plan-card__price {
    margin-bottom: 8px;
}

.aqr-plan-card__amount {
    font-size: 48px;
    font-weight: bold;
    color: #c49b5c;
}

.aqr-plan-card__currency {
    font-size: 18px;
    color: #aaa;
}

.aqr-plan-card__total {
    color: #888;
    font-size: 14px;
    margin-bottom: 24px;
}

.aqr-plan-card__features {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    text-align: left;
}

.aqr-plan-card__features li {
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
    color: #ccc;
    font-size: 15px;
}

.aqr-plan-card__features li::before {
    content: "\2713";
    color: #22a563;
    margin-right: 10px;
    font-weight: bold;
}

/* --- Form Card (Step 2 & Post-Payment) --- */
.aqr-form-card {
    background: #1f1f1f;
    border-radius: 16px;
    padding: 40px;
    max-width: 520px;
    margin: 0 auto;
    border: 1px solid #333;
}

.aqr-form-card h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.aqr-form-card h3 {
    color: #c49b5c;
    font-size: 18px;
    margin: 24px 0 16px;
    padding-top: 16px;
    border-top: 1px solid #333;
}

.aqr-form-group {
    margin-bottom: 20px;
}

.aqr-form-group label {
    display: block;
    color: #ccc;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

.aqr-form-group input[type="text"],
.aqr-form-group input[type="email"],
.aqr-form-group input[type="tel"],
.aqr-form-group input[type="url"] {
    width: 100%;
    padding: 12px 16px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #e5e5e5;
    font-size: 15px;
    transition: border-color 0.2s;
    outline: none;
}

.aqr-form-group input:focus {
    border-color: #c49b5c;
}

.aqr-form-group input.aqr-input-error {
    border-color: #dc2626;
}

.aqr-error-msg {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    min-height: 16px;
}

.aqr-field-help {
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

.aqr-form-group--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
}

.aqr-form-group--checkbox input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #c49b5c;
}

.aqr-form-group--checkbox a {
    color: #c49b5c;
    text-decoration: underline;
}

.aqr-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* --- Buttons --- */
.aqr-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-align: center;
}

.aqr-btn--primary {
    background: #c49b5c;
    color: #141414;
    flex: 1;
}

.aqr-btn--primary:hover {
    background: #d4ab6c;
    transform: translateY(-1px);
}

.aqr-btn--primary:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

.aqr-btn--secondary,
a.aqr-btn--secondary {
    background: #2a2a2a;
    color: #ccc !important;
    border: 1px solid #444;
}

.aqr-btn--secondary:hover {
    background: #333;
}

/* --- Loading / Spinner --- */
.aqr-loading-card {
    text-align: center;
    padding: 60px 40px;
    background: #1f1f1f;
    border-radius: 16px;
    max-width: 480px;
    margin: 0 auto;
    border: 1px solid #333;
}

.aqr-loading-card h2 {
    color: #fff;
    margin-bottom: 12px;
}

.aqr-loading-card p {
    color: #aaa;
}

.aqr-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #333;
    border-top-color: #c49b5c;
    border-radius: 50%;
    animation: aqrSpin 0.8s linear infinite;
    margin: 0 auto 24px;
}

@keyframes aqrSpin {
    to { transform: rotate(360deg); }
}

/* --- Pricing Carousel --- */
.aqr-pricing-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.aqr-period-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.aqr-period-btn {
    padding: 10px 20px;
    background: #2a2a2a;
    color: #aaa;
    border: 1px solid #444;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.aqr-period-btn--active {
    background: #c49b5c;
    color: #141414;
    border-color: #c49b5c;
    font-weight: 600;
}

.aqr-period-btn:hover:not(.aqr-period-btn--active) {
    background: #333;
    color: #fff;
}

.aqr-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: center;
}

.aqr-pricing-card {
    background: #1f1f1f;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.aqr-pricing-card--featured {
    transform: scale(1.08);
    border-color: #c49b5c;
    box-shadow: 0 0 40px rgba(196, 155, 92, 0.15);
    z-index: 2;
}

.aqr-pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #c49b5c;
    color: #141414;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.aqr-pricing-card__badge--ultra {
    background: #5c7dc4;
    color: #fff;
}

.aqr-pricing-card__name {
    color: #fff;
    font-size: 22px;
    margin-bottom: 16px;
}

.aqr-pricing-card__price {
    margin-bottom: 8px;
}

.aqr-pricing-card__from {
    display: block;
    color: #888;
    font-size: 13px;
    margin-bottom: 4px;
}

.aqr-pricing-card__amount {
    font-size: 42px;
    font-weight: bold;
    color: #c49b5c;
}

.aqr-pricing-card--featured .aqr-pricing-card__amount {
    font-size: 48px;
}

.aqr-pricing-card__period {
    font-size: 16px;
    color: #aaa;
}

.aqr-pricing-card__total {
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
    min-height: 20px;
}

.aqr-pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.aqr-pricing-card__features li {
    padding: 6px 0;
    color: #bbb;
    font-size: 14px;
}

.aqr-pricing-card__features li::before {
    content: "\2713";
    color: #22a563;
    margin-right: 8px;
}

/* --- Stripe Embedded Checkout Container --- */
.aqr-stripe-checkout-wrap {
    max-width: 620px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(196,155,92,0.25);
    box-shadow: 0 24px 80px rgba(0,0,0,0.8);
}

.aqr-stripe-checkout-wrap::before {
    content: '\1F512  Pago 100% seguro · Powered by Stripe';
    display: block;
    background: #1a1a1a;
    color: #c49b5c;
    text-align: center;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(196,155,92,0.15);
}

#aqr-stripe-checkout {
    width: 100%;
    display: block;
}

#aqr-stripe-checkout iframe {
    display: block;
    width: 100% !important;
}

/* Step 3 container - no card background needed, Stripe has its own */
.aqr-step[data-step="3"] .aqr-loading-card {
    background: #1f1f1f;
    border: 1px solid #333;
}

/* --- Success Page --- */
.aqr-post-payment-wrapper {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px;
}

.aqr-success-header {
    text-align: center;
    margin-bottom: 32px;
}

.aqr-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.aqr-success-header h1 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 12px;
}

.aqr-success-header p {
    color: #aaa;
    font-size: 16px;
}

#aqr-submission-success {
    text-align: center;
}

#aqr-submission-success h2 {
    color: #22a563;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .aqr-pricing-wrapper {
        padding: 8px;
    }

    .aqr-period-selector {
        gap: 4px;
        margin-bottom: 16px;
    }

    .aqr-period-btn {
        padding: 5px 8px;
        font-size: 10px;
    }

    .aqr-pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        align-items: stretch;
    }

    .aqr-pricing-card {
        padding: 12px 8px;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
    }

    .aqr-pricing-card__features {
        flex: 1;
    }

    .aqr-pricing-card--featured {
        transform: scale(1);
    }

    .aqr-pricing-card__badge {
        font-size: 8px;
        padding: 2px 6px;
        top: -8px;
    }

    .aqr-pricing-card__name {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .aqr-pricing-card__amount {
        font-size: 20px;
    }

    .aqr-pricing-card--featured .aqr-pricing-card__amount {
        font-size: 22px;
    }

    .aqr-pricing-card__period {
        font-size: 10px;
    }

    .aqr-pricing-card__from {
        font-size: 9px;
        margin-bottom: 2px;
    }

    .aqr-pricing-card__total {
        font-size: 9px;
        margin-bottom: 10px;
    }

    .aqr-pricing-card__features {
        margin: 0 0 12px;
    }

    .aqr-pricing-card__features li {
        font-size: 9px;
        padding: 2px 0;
        line-height: 1.3;
    }

    .aqr-pricing-card__features li::before {
        font-size: 9px;
        margin-right: 4px;
    }

    .aqr-pricing-card__badge {
        font-size: 9px;
        padding: 2px 8px;
        top: -8px;
    }

    .aqr-pricing-card .aqr-btn {
        font-size: 9px;
        padding: 7px 12px;
        border-radius: 5px;
        margin-top: auto;
        flex: none;
    }

    .aqr-pricing-card .aqr-btn--secondary {
        color: #ccc;
        background: #2a2a2a;
        border: 1px solid #444;
    }

    .aqr-plan-card,
    .aqr-form-card,
    .aqr-loading-card {
        padding: 24px;
    }

    .aqr-plan-card__amount {
        font-size: 36px;
    }

    .aqr-progress__line {
        width: 30px;
    }

    .aqr-form-actions {
        flex-direction: column;
    }

    .aqr-carousel-wrapper {
        padding: 0 8px;
    }
}

/* --- Checkout Error Banner --- */
.aqr-checkout-error {
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f87171;
    font-size: 15px;
    line-height: 1.5;
}

.aqr-checkout-error__icon {
    font-size: 20px;
    flex-shrink: 0;
}
