/* Pricing Page Specific Styles */

/* Small button variant */
.btn--small {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
}

/* Pricing Page Layout */
.pricing-page {
    padding: 6rem 0 4rem;
    min-height: 100vh;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.pricing-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Plan Selector */
.plan-selector {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.plan-selector-btn {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 2rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.plan-selector-btn:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.plan-selector-btn.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.plan-selector-price {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.plan-popular-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Two Column Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Plan Summary Card */
.plan-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.plan-summary-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.plan-summary-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.plan-summary-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.plan-summary-trial {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.plan-summary-trial svg {
    flex-shrink: 0;
}

.plan-summary-trial strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.plan-summary-trial p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.plan-summary-features {
    margin-bottom: 1.5rem;
}

.plan-summary-features h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.plan-summary-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-summary-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.plan-summary-features li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="10" fill="rgba(99, 102, 241, 0.2)"/><path d="M6 10L9 13L14 7" stroke="%236366f1" stroke-width="2"/></svg>') no-repeat center;
    flex-shrink: 0;
}

.plan-summary-billing {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.border-top {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.billing-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.billing-row--total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.billing-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 0;
}

.plan-summary-guarantee {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.plan-summary-guarantee strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.plan-summary-guarantee p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Registration Card */
.registration-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
}

.registration-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.registration-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Account Type Selector */
.account-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.account-type-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.account-type-option:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.account-type-option.active {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.account-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.account-type-option span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.info-message {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    margin-top: 1rem;
}

.info-message svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.info-message p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row--full {
    grid-template-columns: 1fr;
}

.form-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method-option {
    display: block;
    cursor: pointer;
}

.payment-method-option input[type="radio"] {
    display: none;
}

.payment-method-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.payment-method-option input[type="radio"]:checked + .payment-method-content {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.payment-method-option:hover .payment-method-content {
    border-color: var(--primary-color);
}

.payment-method-icons {
    display: flex;
    gap: 0.5rem;
}

.card-fields {
    display: block;
    animation: slideDown 0.3s ease;
}

.card-fields.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Checkbox Labels */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Button Full Width */
.btn--full {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
}

/* Form Disclaimer */
.form-disclaimer {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.5;
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.security-badge svg {
    flex-shrink: 0;
}

/* Minimal Footer */
.footer--minimal {
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer__minimal-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer__minimal-links {
    display: flex;
    gap: 2rem;
}

.footer__minimal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer__minimal-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 968px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .plan-summary-card {
        position: static;
        order: 2;
    }

    .registration-card {
        order: 1;
    }
}

@media (max-width: 640px) {
    .pricing-page {
        padding: 5rem 0 3rem;
    }

    .pricing-header h1 {
        font-size: 2rem;
    }

    .plan-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .plan-selector-btn {
        width: 100%;
    }

    .plan-summary-card,
    .registration-card {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .security-badges {
        flex-direction: column;
        gap: 1rem;
    }

    .footer__minimal-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Loading State */
.btn--primary.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn--primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Form Validation */
input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

input:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* Tooltip Styles */
.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    cursor: help;
    position: relative;
    vertical-align: middle;
}

.tooltip-trigger svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.tooltip-trigger:hover svg {
    color: var(--primary-color);
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #1f2937;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 10;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 0.75rem;
    font-weight: normal;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

.tooltip-trigger:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* PayPal Buttons Container - Subtle styling that integrates with dark theme */
#paypal-button-container {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden; /* Ensures child elements respect border-radius */
}

/* Subtle accent border on top */
#paypal-button-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.4;
    border-radius: 12px 12px 0 0;
}

/* PayPal Buttons Wrapper */
#paypal-buttons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
    overflow: hidden; /* Ensures iframes respect border-radius */
}

/* Info text above buttons - simple and clean */
.paypal-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Payment security badge - minimal */
.payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.payment-security svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #paypal-button-container {
        margin-top: 1rem;
        padding: 1rem;
    }
}

/* ========================================
   PAYPAL IFRAME & MODAL STYLING
   Force light theme for all PayPal components
   ======================================== */

/* Force light color scheme on all PayPal iframes with rounded corners */
#paypal-button-container iframe,
#paypal-buttons-wrapper iframe,
iframe[name*="paypal"],
iframe[id*="paypal"],
iframe[class*="paypal"] {
    color-scheme: light !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* Target PayPal overlay/modal containers - Force white background with rounded corners */
.paypal-overlay-context,
.paypal-checkout-sandbox,
[data-paypal-checkout-sandbox],
.paypal-overlay,
.paypal-checkout-overlay,
.paypal-overlay-container,
div[id*="paypal-overlay"],
div[class*="paypal-overlay"] {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* Force white background on PayPal modal iframes with rounded corners */
.paypal-sdk-overlay iframe,
.paypal-checkout-iframe,
.paypal-checkout-sandbox iframe,
iframe[name*="__paypal"],
iframe[title*="PayPal"] {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* Target the actual PayPal checkout content */
body[data-paypal-checkout],
html[data-paypal-checkout] {
    background: #ffffff !important;
    color: #2c2e2f !important;
}

/* Force light backgrounds on zoid components (PayPal's framework) with rounded corners */
.zoid-outlet,
.zoid-component-frame,
.zoid-component-content,
[class*="zoid-"] {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* Target PayPal card form specifically */
div[data-funding-source="card"],
div[class*="card-fields"],
.paypal-card-form,
[class*="paypal-card"] {
    background: #ffffff !important;
}

/* Ensure all PayPal form elements have proper styling */
#paypal-button-container input,
#paypal-button-container select,
#paypal-button-container textarea,
#paypal-buttons-wrapper input,
#paypal-buttons-wrapper select,
#paypal-buttons-wrapper textarea {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #2c2e2f !important;
    border: 1px solid #cbd5e0 !important;
}

/* Force dark text on all PayPal labels and text */
#paypal-button-container label,
#paypal-button-container p,
#paypal-button-container span:not([class*="paypal-button"]),
#paypal-buttons-wrapper label,
#paypal-buttons-wrapper p,
#paypal-buttons-wrapper span:not([class*="paypal-button"]) {
    color: #2c2e2f !important;
}

/* PayPal button container info text */
#paypal-button-container .paypal-info-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

/* Additional global overrides for PayPal components */
[data-paypal-checkout-sandbox] * {
    color-scheme: light !important;
}

/* Force white background on PayPal spinner/loading overlays */
.paypal-spinner-container,
.paypal-checkout-loader,
[class*="paypal-spinner"],
[class*="paypal-loader"] {
    background: rgba(255, 255, 255, 0.95) !important;
}


