/**
 * Sunny HQ Custom Checkout Styles
 *
 * Multi-step checkout with conversion optimization
 *
 * @package SunnyHQ
 */

/* ============================================
   CHECKOUT HEADER (Simplified)
   ============================================ */
/* Hide WooCommerce default coupon banner and duplicate order review (but NOT on order-pay page) */
.shq-checkout-page .woocommerce-form-coupon-toggle,
.shq-checkout-page .woocommerce-form-coupon,
.shq-checkout-page .checkout_coupon,
.shq-checkout-page .woocommerce-info {
    display: none !important;
}

/* Hide order_review on regular checkout (we use custom sidebar) but show on order-pay */
.shq-checkout-page:not(.woocommerce-order-pay) #order_review,
.shq-checkout-page:not(.woocommerce-order-pay) .woocommerce-checkout-review-order {
    display: none !important;
}

/* ============================================
   ORDER-PAY PAGE (Invoice Payment)
   ============================================ */

/* --- Page wrapper --- */
.woocommerce-order-pay .shq-checkout-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 30px 80px;
    background: #f4f4f8;
    min-height: 100vh;
}

/* Remove the old ::before heading — the invoice details handle it now */
.woocommerce-order-pay .shq-checkout-wrapper::before {
    display: none;
}

.woocommerce-order-pay .woocommerce {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

/* --- Two-column grid: invoice details + WC order_review --- */
.woocommerce-order-pay #order_review {
    display: grid !important;
    grid-template-columns: 55% 1fr;
    gap: 30px;
    align-items: start;
}

.woocommerce-order-pay .woocommerce-checkout-review-order {
    display: contents !important;
}

/* Hide the default WC order summary table (replaced by our invoice table) */
.woocommerce-order-pay .shop_table.order_details,
.woocommerce-order-pay #order_review > .shop_table {
    display: none !important;
}

/* --- LEFT COLUMN: Invoice Details --- */
.shq-inv-pay-details {
    grid-column: 1;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 30px;
}

.shq-inv-pay-heading {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy, #020051);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.shq-inv-pay-title {
    color: #6b7280;
    font-size: 0.95rem;
    margin: -8px 0 24px 0;
}

/* Invoice line-items table */
.shq-inv-pay-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.shq-inv-pay-table thead th {
    padding: 10px 10px;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy, #020051);
    font-weight: 600;
    white-space: nowrap;
}

.shq-inv-pay-table thead th.col-qty,
.shq-inv-pay-table thead th.col-rate,
.shq-inv-pay-table thead th.col-amount {
    text-align: right;
}

.shq-inv-pay-table thead th.col-qty {
    text-align: center;
}

.shq-inv-pay-table tbody tr {
    transition: background 0.1s;
}

.shq-inv-pay-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.shq-inv-pay-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #1B2B4B;
    vertical-align: top;
}

.shq-inv-pay-table .cell-name {
    font-weight: 500;
}

.shq-inv-pay-table .cell-desc {
    color: #6b7280;
    font-size: 13px;
}

.shq-inv-pay-table .cell-qty {
    text-align: center;
}

.shq-inv-pay-table .cell-rate,
.shq-inv-pay-table .cell-amount {
    text-align: right;
    white-space: nowrap;
}

.shq-inv-pay-table .cell-amount {
    font-weight: 600;
}

/* Tfoot rows */
.shq-inv-pay-table tfoot td {
    padding: 10px 10px;
    text-align: right;
    font-weight: 600;
    color: #1B2B4B;
}

.shq-inv-pay-table tfoot td:first-child {
    text-align: right;
}

.shq-inv-pay-table .row-subtotal td {
    border-top: 2px solid #e5e7eb;
    font-size: 14px;
}

.shq-inv-pay-table .row-total td {
    font-size: 15px;
    font-weight: 700;
}

/* Billing / Amount Due bar — separated from table */
.shq-inv-pay-due {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shq-inv-pay-due-label {
    font-weight: 600;
    color: var(--navy, #020051);
    font-size: 0.95rem;
}

.shq-inv-pay-due-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--coral, #FF6048);
}

/* --- RIGHT COLUMN: Payment form --- */
.woocommerce-order-pay #payment {
    grid-column: 2;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 30px;
    margin: 0;
}

.woocommerce-order-pay .wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-order-pay .wc_payment_method {
    border: none;
    border-radius: 0;
    margin: 0;
    background: transparent;
}

/* Payment method label with card icons */
.woocommerce-order-pay .wc_payment_method > label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 0.75rem 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy, #020051);
    font-size: 1.1rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.25rem;
}

.woocommerce-order-pay .wc_payment_method > label input[type="radio"] {
    display: none;
}

.woocommerce-order-pay .wc_payment_method > label img {
    height: 24px;
    width: auto;
    margin-left: auto;
}

.woocommerce-order-pay .payment_box {
    padding: 0;
    background: transparent;
    border: none;
}

/* Credit card form fields */
.woocommerce-order-pay .payment_box .form-row {
    margin-bottom: 1rem;
}

.woocommerce-order-pay .payment_box .form-row label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--navy, #020051);
    font-size: 13px;
}

.woocommerce-order-pay .payment_box .form-row input,
.woocommerce-order-pay .payment_box .form-row select {
    width: 100%;
    padding: 0.7rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'DM Sans', -apple-system, sans-serif;
}

.woocommerce-order-pay .payment_box .form-row input:focus,
.woocommerce-order-pay .payment_box .form-row select:focus {
    outline: none;
    border-color: var(--coral, #FF6048);
    box-shadow: 0 0 0 3px rgba(255, 96, 72, 0.1);
}

/* Expiry/CVV row - side by side */
.woocommerce-order-pay .payment_box .form-row-first,
.woocommerce-order-pay .payment_box .form-row-last {
    width: 48%;
    display: inline-block;
}

.woocommerce-order-pay .payment_box .form-row-first {
    margin-right: 4%;
}

/* Save to account checkbox - subtle */
.woocommerce-order-pay .woocommerce-SavedPaymentMethods-saveNew,
.woocommerce-order-pay .sv-wc-payment-gateway-payment-form-save-payment-method {
    font-size: 12px;
    color: #666;
    margin-top: 0.5rem;
}

.woocommerce-order-pay .woocommerce-SavedPaymentMethods-saveNew input,
.woocommerce-order-pay .sv-wc-payment-gateway-payment-form-save-payment-method input {
    width: auto;
    margin-right: 6px;
}

/* Pay button — pill shape, full width */
.woocommerce-order-pay #place_order {
    width: 100%;
    height: 50px;
    padding: 0 2rem;
    background: var(--coral, #FF6048);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1.25rem;
    font-family: 'DM Sans', sans-serif;
    text-indent: -9999px;
    line-height: 0;
}

.woocommerce-order-pay #place_order::after {
    content: "Pay Now";
    text-indent: 0;
    display: block;
    line-height: 50px;
}

.woocommerce-order-pay #place_order:hover {
    background: #e5503a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 96, 72, 0.3);
}

/* Privacy policy text */
.woocommerce-order-pay .woocommerce-privacy-policy-text {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 12px;
    line-height: 1.5;
    text-align: center;
}

.woocommerce-order-pay .woocommerce-privacy-policy-text a {
    color: #6b7280;
}

/* Hide billing toggle and progress on order-pay */
.woocommerce-order-pay .shq-billing-toggle-wrap,
.woocommerce-order-pay .shq-progress,
.woocommerce-order-pay .shq-checkout-grid,
.woocommerce-order-pay .shq-checkout-sidebar {
    display: none !important;
}

/* --- Mobile: Stack vertically --- */
@media (max-width: 768px) {
    .woocommerce-order-pay .shq-checkout-wrapper {
        padding: 24px 20px 60px;
    }

    .woocommerce-order-pay #order_review {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shq-inv-pay-details {
        grid-column: 1;
        padding: 20px;
    }

    .woocommerce-order-pay #payment {
        grid-column: 1;
        padding: 20px;
    }

    .shq-inv-pay-heading {
        font-size: 1.25rem;
    }

    .shq-inv-pay-due {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Hide description column on mobile */
    .shq-inv-pay-table .col-desc {
        display: none;
    }
}

/* Hide saved payment methods UI - we don't save cards */
.sv-wc-payment-gateway-payment-form-manage-payment-methods,
.js-wc-authorize-net-cim-credit-card-payment-token,
label.sv-wc-payment-gateway-payment-form-saved-payment-method,
#wc-authorize-net-cim-credit-card-use-new-payment-method,
label[for="wc-authorize-net-cim-credit-card-use-new-payment-method"],
.wc-authorize-net-cim-credit-card-saved-payment-methods,
.sv-wc-payment-gateway-payment-form-saved-payment-methods,
.woocommerce-SavedPaymentMethods {
    display: none !important;
}

/* Hide WordPress password strength meter UI - we use custom validation */
.woocommerce-checkout .wp-pwd,
.woocommerce-checkout .pw-weak,
.woocommerce-checkout .password-input-wrapper .button.wp-generate-pw,
.woocommerce-checkout .indicator-hint,
.woocommerce-checkout #pass-strength-result,
.woocommerce-checkout .wp-hide-pw,
.woocommerce-checkout .user-pass-wrap .wp-pwd {
    display: none !important;
}

.shq-checkout-page .shq-checkout-header {
    background: #fff;
    padding: 1.25rem 2rem;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid #e5e7eb;
}

.shq-checkout-page .shq-checkout-header-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.shq-checkout-page .shq-checkout-logo img {
    height: 40px;
    width: auto;
}

/* Hide all decorative elements on checkout */
.shq-checkout-page .hero-arcs,
.shq-checkout-page .difference-arc,
.shq-checkout-page .nav-bar::after,
.shq-checkout-page .mega-menu,
.shq-checkout-page .mega-menu::before,
.shq-checkout-page .mega-menu::after {
    display: none !important;
}

/* Override any stray SVG backgrounds or decorations */
.shq-checkout-page body::before,
.shq-checkout-page body::after,
.shq-checkout-page main::before,
.shq-checkout-page main::after {
    display: none !important;
}

/* ============================================
   CHECKOUT WRAPPER & LAYOUT
   ============================================ */
.shq-checkout-wrapper {
    background: #f8f8fa;
    min-height: 100vh;
    padding: 2rem 1rem 4rem;
}

.shq-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.shq-checkout-main {
    min-width: 0;
}

.shq-checkout-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

/* ============================================
   PROGRESS INDICATOR
   ============================================ */
.shq-progress {
    max-width: 500px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.shq-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shq-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.shq-progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--navy-30);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy-50);
    transition: all 0.3s ease;
    position: relative;
}

.shq-progress-circle .step-check {
    display: none;
    width: 20px;
    height: 20px;
}

.shq-progress-step.active .shq-progress-circle {
    background: var(--coral);
    border-color: var(--coral);
    color: #fff;
}

.shq-progress-step.completed .shq-progress-circle {
    background: var(--coral);
    border-color: var(--coral);
    color: #fff;
}

.shq-progress-step.completed .shq-progress-circle .step-number {
    display: none;
}

.shq-progress-step.completed .shq-progress-circle .step-check {
    display: block;
    stroke: #fff;
}

.shq-progress-label {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy-50);
    transition: color 0.3s ease;
}

.shq-progress-step.active .shq-progress-label,
.shq-progress-step.completed .shq-progress-label {
    color: var(--navy);
}

.shq-progress-line {
    flex: 1;
    height: 2px;
    background: var(--navy-30);
    margin: 0 1rem;
    margin-bottom: 1.5rem;
    max-width: 80px;
    transition: background 0.3s ease;
}

.shq-progress-step.completed + .shq-progress-line,
.shq-progress-line.completed {
    background: var(--coral);
}

/* ============================================
   STEP VISIBILITY
   ============================================ */
.shq-checkout-step {
    display: none;
}

.shq-checkout-step.shq-step-active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ============================================
   FORM SECTIONS
   ============================================ */
.shq-form-section {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(2, 0, 81, 0.06);
}

.shq-section-title {
    font-family: var(--font-h);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.shq-subsection-title {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
}

/* ============================================
   FORM INPUTS
   ============================================ */
.shq-form-row {
    margin-bottom: 1.25rem;
}

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

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

.shq-form-group {
    display: flex;
    flex-direction: column;
}

.shq-form-group label {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.shq-form-group label abbr {
    color: var(--coral);
    text-decoration: none;
}

.shq-form-group label .optional {
    color: var(--navy-50);
    font-weight: 400;
}

.shq-input,
.shq-select {
    font-family: var(--font-ui);
    font-size: 1rem;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    background: #fff;
    color: var(--navy);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.shq-input:focus,
.shq-select:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 4px rgba(255, 96, 72, 0.1);
}

.shq-input::placeholder {
    color: var(--navy-50);
}

.shq-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238180a8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.shq-btn {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.shq-btn-coral {
    background: var(--coral);
    color: #fff;
}

.shq-btn-coral:hover {
    background: var(--coral-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 96, 72, 0.3);
}

.shq-btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy-30);
}

.shq-btn-outline:hover {
    border-color: var(--navy);
    background: var(--navy-05);
}

.shq-btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.shq-btn-outline-navy:hover {
    background: var(--navy);
    color: #fff;
}

.shq-btn-full {
    width: 100%;
}

.shq-form-actions {
    margin-top: 1.5rem;
}

.shq-form-actions-split {
    display: flex;
    gap: 1rem;
}

.shq-form-actions-split .shq-btn-outline {
    flex: 0 0 auto;
}

.shq-form-actions-split .shq-btn-coral,
.shq-form-actions-split .shq-btn-submit {
    flex: 1;
}

/* ============================================
   PAYMENT TABS
   ============================================ */
.shq-payment-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.shq-payment-tab {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    background: #fff;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy-70);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.shq-payment-tab:hover {
    border-color: var(--navy-50);
}

.shq-payment-tab.active {
    border-color: var(--coral);
    background: var(--coral-bg);
    color: var(--navy);
}

.shq-payment-tab svg {
    stroke: currentColor;
}

/* ============================================
   PAYMENT SECTION (WooCommerce Override)
   ============================================ */
.shq-payment-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.shq-payment-section .wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shq-payment-section .wc_payment_method {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.shq-payment-section .wc_payment_method:has(input:checked) {
    border-color: var(--coral);
    background: var(--coral-bg);
}

.shq-payment-section .wc_payment_method label {
    font-weight: 500;
    color: var(--navy);
    cursor: pointer;
}

.shq-payment-section .payment_box {
    padding: 1rem 0 0;
    margin-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

/* Stripe Elements styling */
.shq-payment-section .StripeElement {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s;
}

.shq-payment-section .StripeElement--focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 4px rgba(255, 96, 72, 0.1);
}

/* ============================================
   BUSINESS TYPE TOGGLE
   ============================================ */
.shq-business-toggle {
    display: flex;
    gap: 1.5rem;
}

.shq-radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--navy);
    cursor: pointer;
}

.shq-radio-label input {
    display: none;
}

.shq-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.shq-radio-label input:checked + .shq-radio-custom {
    border-color: var(--coral);
}

.shq-radio-label input:checked + .shq-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--coral);
    border-radius: 50%;
}

/* ============================================
   CHECKBOX & TERMS
   ============================================ */
.shq-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--navy-70);
    cursor: pointer;
    line-height: 1.5;
}

.shq-checkbox-label input {
    display: none;
}

.shq-checkbox-custom {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
    margin-top: 1px;
}

.shq-checkbox-label input:checked + .shq-checkbox-custom {
    background: var(--coral);
    border-color: var(--coral);
}

.shq-checkbox-label input:checked + .shq-checkbox-custom::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.shq-checkbox-label a {
    color: var(--coral);
    text-decoration: underline;
}

.shq-checkbox-label a:hover {
    color: var(--coral-hover);
}

/* Checkbox error state - red border highlight */
.shq-checkbox-label.shq-checkbox-error .shq-checkbox-custom {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Shake animation for terms checkbox */
@keyframes shq-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.shq-checkbox-label.shq-shake {
    animation: shq-shake 0.5s ease-in-out;
}

/* ============================================
   PASSWORD STRENGTH INDICATOR
   ============================================ */

/* Strength bar container (injected by JS) */
.password-strength-container {
    margin-top: 6px;
    margin-bottom: 4px;
}

.password-strength-label {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}

/* Requirements - inline horizontal layout */
.shq-password-strength {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 4px;
    padding: 0;
}

.shq-pw-req {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.shq-pw-req.met {
    color: #059669;
}

.shq-pw-icon {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.shq-pw-req.met .shq-pw-icon {
    transform: scale(1.1);
}

/* Password field error state */
.shq-input.shq-password-weak {
    border-color: #f59e0b;
}

/* ============================================
   UPSELL CARDS
   ============================================ */
.shq-upsells {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shq-upsell-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 10px;
    border: 1px solid var(--gray-200);
}

.shq-upsell-content {
    flex: 1;
}

.shq-upsell-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.shq-upsell-header h4 {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0;
}

.shq-upsell-price {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--coral);
}

.shq-upsell-content p {
    font-size: 0.85rem;
    color: var(--navy-70);
    margin: 0;
    line-height: 1.4;
}

/* Toggle Switch */
.shq-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.shq-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.shq-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-300);
    border-radius: 26px;
    transition: 0.3s;
}

.shq-toggle-slider::before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.shq-toggle input:checked + .shq-toggle-slider {
    background: var(--coral);
}

.shq-toggle input:checked + .shq-toggle-slider::before {
    transform: translateX(22px);
}

/* ============================================
   SECURE BADGE
   ============================================ */
.shq-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--navy-50);
}

.shq-secure-badge svg {
    stroke: var(--navy-50);
}

/* ============================================
   DIVIDERS
   ============================================ */
.shq-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 1.5rem 0;
}

.shq-sidebar-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 1rem 0;
}

/* ============================================
   SIDEBAR CARD
   ============================================ */
.shq-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(2, 0, 81, 0.06);
}

.shq-sidebar-title {
    font-family: var(--font-h);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
}

/* Billing Toggle */
.shq-billing-toggle {
    display: flex;
    background: var(--gray-100);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 1.25rem;
}

.shq-toggle-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy-70);
    cursor: pointer;
    transition: all 0.2s ease;
}

.shq-toggle-btn.active {
    background: var(--coral);
    color: #fff;
}

/* Plan Details */
.shq-plan-details {
    margin-bottom: 0.5rem;
}

.shq-plan-name {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.shq-plan-desc {
    font-size: 0.85rem;
    color: var(--navy-70);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

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

.shq-price-amount {
    font-family: var(--font-h);
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}

.shq-price-period {
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--navy-50);
}

.shq-annual-savings {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.shq-original-price {
    font-size: 0.9rem;
    color: var(--navy-50);
    text-decoration: line-through;
}

.shq-savings-badge {
    background: var(--coral);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Features List */
.shq-features-list h5 {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

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

.shq-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--navy-70);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.shq-features-list li svg {
    flex-shrink: 0;
    stroke: var(--coral);
    margin-top: 2px;
}

/* Coupon */
.shq-coupon-input-wrap {
    display: flex;
    gap: 0.5rem;
}

.shq-coupon-input {
    flex: 1;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 0.85rem;
}

.shq-coupon-input:focus {
    outline: none;
    border-color: var(--coral);
}

.shq-coupon-apply {
    padding: 0.625rem 1rem;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.shq-coupon-apply:hover {
    background: var(--navy-90);
}

.shq-coupon-message {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.shq-coupon-message.success {
    color: var(--success);
}

.shq-coupon-message.error {
    color: #dc3545;
}

/* Order Total */
.shq-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shq-total-label {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy);
}

.shq-total-amount {
    font-family: var(--font-h);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

.shq-renewal-notice {
    font-size: 0.8rem;
    color: var(--navy-50);
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Guarantee */
.shq-guarantee {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 8px;
    margin-top: 1rem;
}

.shq-guarantee svg {
    flex-shrink: 0;
    stroke: var(--success);
}

.shq-guarantee span {
    font-size: 0.8rem;
    color: var(--navy-70);
    line-height: 1.4;
}

/* Trust Badges */
.shq-trust-badges {
    margin-top: 1rem;
    text-align: center;
}

.shq-trust-label {
    font-size: 0.75rem;
    color: var(--navy-50);
    display: block;
    margin-bottom: 0.5rem;
}

.shq-payment-icons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.shq-card-icon {
    width: 38px;
    height: 24px;
    border-radius: 3px;
}

/* ============================================
   WELCOME STEP (Step 3)
   ============================================ */
.shq-welcome-step {
    max-width: 600px;
    margin: 0 auto;
}

.shq-welcome-content {
    background: #fff;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(2, 0, 81, 0.06);
}

.shq-welcome-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--coral-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shq-welcome-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--coral);
}

.shq-welcome-title {
    font-family: var(--font-h);
    font-size: 2rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.shq-welcome-subtitle {
    font-size: 1.1rem;
    color: var(--navy-70);
    margin-bottom: 2rem;
}

.shq-welcome-steps {
    text-align: left;
    margin-bottom: 2rem;
}

.shq-welcome-step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.shq-welcome-step-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shq-welcome-step-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--coral);
}

.shq-welcome-step-text h3 {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.shq-welcome-step-text p {
    font-size: 0.9rem;
    color: var(--navy-70);
    margin: 0;
}

.shq-welcome-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.shq-welcome-testimonial {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.shq-welcome-testimonial blockquote {
    font-family: var(--font-h);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--navy);
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.shq-welcome-testimonial cite {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--navy-50);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .shq-checkout-grid {
        grid-template-columns: 1fr;
    }

    .shq-checkout-sidebar {
        position: static;
        order: -1;
    }

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

    .shq-form-zip {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .shq-checkout-wrapper {
        padding: 1rem 0.75rem 3rem;
    }

    .shq-progress {
        margin-bottom: 2rem;
    }

    .shq-progress-label {
        font-size: 0.75rem;
    }

    .shq-progress-circle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .shq-form-section {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .shq-section-title {
        font-size: 1.25rem;
    }

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

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

    .shq-form-zip {
        grid-column: auto;
    }

    .shq-form-actions-split {
        flex-direction: column-reverse;
    }

    .shq-welcome-content {
        padding: 2rem 1.25rem;
    }

    .shq-welcome-title {
        font-size: 1.5rem;
    }

    .shq-welcome-actions {
        flex-direction: column;
    }
}

/* =============================================
   NEW FIELD STYLES
   ============================================= */

/* Phone with country code */
.shq-phone-wrapper {
    display: flex;
    align-items: stretch;
}

.shq-country-code {
    flex-shrink: 0;
}

.shq-country-code-select {
    width: 80px !important;
    border-radius: 10px 0 0 10px !important;
    border-right: none !important;
    padding: 0.75rem 0.25rem 0.75rem 0.5rem !important;
    font-size: 0.85rem !important;
    background-color: #f9fafb;
    height: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.shq-phone-wrapper .shq-phone-input {
    border-radius: 0 10px 10px 0 !important;
    flex: 1;
    min-width: 0;
}

/* Field hints */
.shq-field-hint {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.35rem;
    line-height: 1.3;
}

/* Optional label */
.optional {
    font-weight: 400;
    color: #9ca3af;
    font-size: 0.85em;
}

/* =============================================
   UPSELL ADD-ON CARDS
   ============================================= */

.shq-upsells-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.shq-upsells-header {
    margin-bottom: 1rem;
}

.shq-upsells-title {
    font-family: var(--font-h, 'Source Serif 4', serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy, #1B2B4B);
    margin: 0 0 0.25rem 0;
}

.shq-upsells-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.shq-upsell-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.shq-upsell-card:hover {
    border-color: #d1d5db;
}

.shq-upsell-card.shq-upsell-active {
    border-color: var(--coral, #F05A3C);
    box-shadow: 0 0 0 1px var(--coral, #F05A3C);
    background: #fff8f6;
}

.shq-upsell-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.shq-upsell-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy, #1B2B4B);
}

.shq-upsell-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.shq-upsell-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy, #1B2B4B);
}

.shq-upsell-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.35;
}

.shq-upsell-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.shq-upsell-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy, #1B2B4B);
    white-space: nowrap;
}

.shq-upsell-price small {
    font-weight: 400;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Toggle Switch */
.shq-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
}

.shq-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.shq-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    border-radius: 24px;
    transition: background-color 0.25s;
}

.shq-toggle-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.shq-toggle-switch input:checked + .shq-toggle-slider {
    background-color: var(--coral, #F05A3C);
}

.shq-toggle-switch input:checked + .shq-toggle-slider::before {
    transform: translateX(20px);
}

/* Upsell responsive */
@media (max-width: 600px) {
    .shq-upsell-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .shq-upsell-action {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }
}

/* =============================================
   THANK YOU / RECEIPT PAGE
   ============================================= */

.shq-thankyou-wrapper {
    padding: 2rem 1rem 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.shq-thankyou-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    margin-top: 2rem;
}

/* Welcome card */
.shq-welcome-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.shq-thankyou-wrapper .shq-welcome-icon {
    margin-bottom: 1rem;
}

.shq-thankyou-wrapper .shq-welcome-icon svg {
    stroke: #22c55e;
}

.shq-thankyou-wrapper .shq-welcome-title {
    font-family: var(--font-h, 'Source Serif 4', serif);
    font-size: 2rem;
    color: var(--navy, #1B2B4B);
    margin: 0 0 0.5rem 0;
}

.shq-thankyou-wrapper .shq-welcome-subtitle {
    font-size: 1.05rem;
    color: #6b7280;
    margin: 0;
}

/* Next steps card */
.shq-next-steps-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.shq-card-heading {
    font-family: var(--font-h, 'Source Serif 4', serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy, #1B2B4B);
    margin: 0 0 1.25rem 0;
}

.shq-thankyou-wrapper .shq-welcome-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.shq-thankyou-wrapper .shq-welcome-step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.shq-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--coral, #F05A3C);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.shq-thankyou-wrapper .shq-welcome-step-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy, #1B2B4B);
    margin: 0 0 0.25rem 0;
}

.shq-thankyou-wrapper .shq-welcome-step-text p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.45;
}

.shq-thankyou-wrapper .shq-welcome-step-text strong {
    color: var(--navy, #1B2B4B);
}

.shq-thankyou-wrapper .shq-welcome-actions {
    display: flex;
    gap: 1rem;
}

/* Receipt card */
.shq-receipt-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1rem;
}

.shq-receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
}

.shq-receipt-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.shq-receipt-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy, #1B2B4B);
    text-align: right;
}

.shq-receipt-order-num .shq-receipt-value {
    font-weight: 600;
    font-family: monospace;
}

.shq-receipt-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.75rem 0;
}

.shq-receipt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.shq-receipt-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy, #1B2B4B);
}

.shq-receipt-item-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy, #1B2B4B);
}

.shq-receipt-total .shq-receipt-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy, #1B2B4B);
}

.shq-receipt-total .shq-receipt-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--coral, #F05A3C);
}

.shq-receipt-guarantee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f0fdf4;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #15803d;
}

.shq-receipt-guarantee svg {
    stroke: #22c55e;
    flex-shrink: 0;
}

/* Testimonial */
.shq-receipt-testimonial {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
}

.shq-receipt-testimonial blockquote {
    font-family: var(--font-h, 'Source Serif 4', serif);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--navy, #1B2B4B);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.shq-receipt-testimonial cite {
    font-size: 0.85rem;
    color: #6b7280;
    font-style: normal;
}

/* Thank you responsive */
@media (max-width: 768px) {
    .shq-thankyou-grid {
        grid-template-columns: 1fr;
    }
    .shq-thankyou-wrapper .shq-welcome-title {
        font-size: 1.5rem;
    }
    .shq-thankyou-wrapper .shq-welcome-actions {
        flex-direction: column;
    }
}

/* Upsell loading state */
.shq-upsell-card.shq-upsell-loading {
    opacity: 0.6;
    pointer-events: none;
}
.shq-upsell-card.shq-upsell-loading .shq-toggle-slider::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border: 2px solid rgba(0,0,0,0.1);
    border-top-color: var(--coral, #F05A3C);
    border-radius: 50%;
    animation: shq-spin 0.6s linear infinite;
}

/* =============================================
   BILLING FREQUENCY TOGGLE
   ============================================= */

.shq-billing-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.shq-billing-toggle {
    display: inline-flex;
    background: #e5e7eb;
    border-radius: 12px;
    padding: 4px;
    gap: 0;
}

.shq-billing-btn {
    position: relative;
    padding: 0.6rem 1.75rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-family: var(--font-ui, 'DM Sans', sans-serif);
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.shq-billing-btn.active {
    background: #fff;
    color: var(--navy, #1B2B4B);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.shq-billing-btn:hover:not(.active) {
    color: var(--navy, #1B2B4B);
}

.shq-billing-save {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background: var(--coral, #F05A3C);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.4rem;
    vertical-align: middle;
    letter-spacing: 0.01em;
}

.shq-billing-toggle-wrap.shq-billing-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* =============================================
   CUSTOMER ONBOARDING FORM
   ============================================= */

.shq-onboarding-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.shq-onboarding-header {
    text-align: center;
    margin-bottom: 2rem;
}

.shq-onboarding-icon {
    margin-bottom: 1rem;
}

.shq-onboarding-icon svg {
    stroke: var(--coral, #F05A3C);
}

.shq-onboarding-title {
    font-family: var(--font-h, 'Source Serif 4', serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy, #1B2B4B);
    margin: 0 0 0.5rem 0;
}

.shq-onboarding-subtitle {
    font-size: 1.05rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Form wrapper */
.shq-onboarding-form-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
}

/* CF7 form overrides for onboarding */
.shq-onboarding-form-wrap .wpcf7-form {
    font-family: var(--font-ui, 'DM Sans', sans-serif);
}

.shq-onboarding-form-wrap label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy, #1B2B4B);
    margin-bottom: 0.35rem;
}

.shq-onboarding-form-wrap .shq-form-section-label {
    font-family: var(--font-h, 'Source Serif 4', serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy, #1B2B4B);
    margin: 1.75rem 0 0.75rem 0;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.shq-onboarding-form-wrap .shq-form-section-label:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.shq-onboarding-form-wrap input[type="text"],
.shq-onboarding-form-wrap input[type="email"],
.shq-onboarding-form-wrap input[type="url"],
.shq-onboarding-form-wrap input[type="tel"],
.shq-onboarding-form-wrap input[type="password"],
.shq-onboarding-form-wrap textarea,
.shq-onboarding-form-wrap select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-family: var(--font-ui, 'DM Sans', sans-serif);
    font-size: 0.95rem;
    color: var(--navy, #1B2B4B);
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.shq-onboarding-form-wrap input:focus,
.shq-onboarding-form-wrap textarea:focus,
.shq-onboarding-form-wrap select:focus {
    outline: none;
    border-color: var(--coral, #F05A3C);
    box-shadow: 0 0 0 3px rgba(240, 90, 60, 0.1);
}

.shq-onboarding-form-wrap textarea {
    min-height: 100px;
    resize: vertical;
}

.shq-onboarding-form-wrap .shq-field-hint {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.3rem;
}

.shq-onboarding-form-wrap .shq-form-row {
    margin-bottom: 1.25rem;
}

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

/* Submit button */
.shq-onboarding-form-wrap input[type="submit"],
.shq-onboarding-form-wrap .wpcf7-submit {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--coral, #F05A3C);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: var(--font-ui, 'DM Sans', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1.5rem;
}

.shq-onboarding-form-wrap input[type="submit"]:hover,
.shq-onboarding-form-wrap .wpcf7-submit:hover {
    background: #d94e33;
}

/* CF7 messages */
.shq-onboarding-form-wrap .wpcf7-response-output {
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0 0 0;
    font-size: 0.9rem;
}

.shq-onboarding-form-wrap .wpcf7-mail-sent-ok {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #15803d;
}

.shq-onboarding-form-wrap .wpcf7-not-valid-tip {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

/* Trust badges */
.shq-onboarding-trust {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
}

.shq-onboarding-trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.shq-onboarding-trust-item svg {
    stroke: #9ca3af;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .shq-onboarding-form-wrap {
        padding: 1.5rem;
    }
    .shq-onboarding-form-wrap .shq-form-row-two {
        grid-template-columns: 1fr;
    }
    .shq-onboarding-title {
        font-size: 1.5rem;
    }
}

/* =============================================
   ONBOARDING - PRE-FILLED SECTION
   ============================================= */

.shq-prefilled-section {
    background: #f8f8fa;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.shq-prefilled-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.shq-prefilled-row:last-child {
    margin-bottom: 0;
}

.shq-prefilled-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.shq-prefilled-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.shq-prefilled-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy, #1B2B4B);
}

/* Radio cards for WP access method */
.shq-access-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.shq-radio-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.shq-radio-card:hover {
    border-color: #d1d5db;
}

.shq-radio-card input[type="radio"] {
    margin-top: 0.2rem;
    accent-color: var(--coral, #F05A3C);
    flex-shrink: 0;
}

.shq-radio-card input[type="radio"]:checked ~ .shq-radio-card-content {
    color: var(--navy, #1B2B4B);
}

.shq-radio-card:has(input:checked) {
    border-color: var(--coral, #F05A3C);
    background: #fff8f6;
}

.shq-radio-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.shq-radio-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy, #1B2B4B);
}

.shq-radio-card-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.35;
}

.shq-radio-card-desc strong {
    color: var(--coral, #F05A3C);
    font-weight: 600;
}

/* Info box for Sunny HQ admin instructions */
.shq-info-box {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #eff6ff;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    margin-top: 0.5rem;
}

.shq-info-box svg {
    stroke: #3b82f6;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.shq-info-box strong {
    display: block;
    font-size: 0.9rem;
    color: var(--navy, #1B2B4B);
    margin-bottom: 0.25rem;
}

.shq-info-box p {
    font-size: 0.85rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.45;
}

.shq-info-box p strong {
    display: inline;
    color: #1e40af;
}

/* Success message */
.shq-onboarding-success {
    text-align: center;
    padding: 3rem 2rem;
}

.shq-success-icon {
    margin-bottom: 1rem;
}

.shq-success-icon svg {
    stroke: #22c55e;
}

.shq-onboarding-success h2 {
    font-family: var(--font-h, 'Source Serif 4', serif);
    font-size: 1.75rem;
    color: var(--navy, #1B2B4B);
    margin: 0 0 0.5rem 0;
}

.shq-onboarding-success p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.shq-onboarding-email-note {
    font-size: 0.875rem;
    color: #9ca3af;
    background: #f9fafb;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 0 0 1.5rem 0;
}

/* Tighter header spacing */
.shq-onboarding-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

/* Onboarding submit button */
.shq-onboarding-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 600px) {
    .shq-prefilled-row {
        grid-template-columns: 1fr;
    }
    .shq-access-options {
        gap: 0.5rem;
    }
}

/* =============================================
   TERMS VALIDATION ERROR FIX
   ============================================= */

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    padding: 1rem 1.25rem !important;
    list-style: none !important;
    margin: 0 0 1.5rem 0 !important;
    border-radius: 10px !important;
    background-image: none !important;
    text-indent: 0 !important;
    padding-left: 1.25rem !important;
}

.woocommerce-error {
    background: #fef2f2 !important;
    background-image: none !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
}

.woocommerce-error li {
    list-style: none !important;
    padding-left: 0 !important;
    background-image: none !important;
    text-indent: 0 !important;
}

.woocommerce-error::before,
.woocommerce-error li::before,
.woocommerce-error::after,
.woocommerce-error li::after {
    display: none !important;
    content: none !important;
}

/* =============================================
   ONBOARDING - HIGHLIGHTED SECTION + OPTIONAL
   ============================================= */

.shq-form-section-highlight {
    background: #f8f8fa;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin: 0 0 1.5rem 0;
    border: 1px solid #e5e7eb;
}

.shq-form-section-highlight .shq-form-row:last-child {
    margin-bottom: 0;
}

.shq-optional-label {
    font-family: var(--font-ui, 'DM Sans', sans-serif);
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.shq-section-hint {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: -0.5rem 0 1.25rem 0;
    line-height: 1.45;
}

/* Spinner for form submission */
.shq-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: shq-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

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

/* =============================================
   RECEIPT GROUPED LINE ITEMS
   ============================================= */

.shq-receipt-section {
    margin-bottom: 1rem;
}

.shq-receipt-section-label {
    font-size: 11px;
    font-weight: 600;
    color: #FF6048;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.shq-receipt-item-period {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

.shq-receipt-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px dashed #e5e7eb;
}

.shq-receipt-subtotal span:last-child {
    font-weight: 600;
    color: #1B2B4B;
}

/* =============================================
   EXISTING CUSTOMER LOGIN
   ============================================= */

.shq-existing-login {
    margin-bottom: 1.5rem;
}

.shq-existing-login-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f7fa;
    padding: 0.75rem 1rem;
    border-radius: 10px;
}

.shq-existing-login-text {
    font-size: 0.9rem;
    color: var(--navy-70, #6b7280);
}

.shq-existing-login-toggle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--coral, #FF6048);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.shq-existing-login-toggle:hover {
    color: var(--coral-hover, #e5533c);
}

.shq-login-arrow {
    transition: transform 0.2s;
}

.shq-existing-login-toggle.active .shq-login-arrow {
    display: none;
}

.shq-existing-login-form {
    background: #f5f7fa;
    padding: 1rem;
    border-radius: 0 0 10px 10px;
    margin-top: -8px;
    animation: shq-slide-down 0.25s ease;
}

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

.shq-login-fields {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.shq-login-field {
    flex: 1;
}

.shq-login-field .shq-input {
    padding: 0.7rem 0.875rem;
    font-size: 0.9rem;
}

.shq-login-submit {
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.shq-login-footer {
    margin-top: 0.75rem;
}

.shq-forgot-password {
    font-size: 0.8rem;
    color: var(--navy-50, #9ca3af);
    text-decoration: none;
}

.shq-forgot-password:hover {
    color: var(--coral, #FF6048);
    text-decoration: underline;
}

.shq-login-message {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: none;
}

.shq-login-message.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.shq-login-message.success {
    display: block;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* New customer label */
.shq-new-customer-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--navy-50, #9ca3af);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

/* Login responsive */
@media (max-width: 600px) {
    .shq-login-fields {
        flex-direction: column;
    }

    .shq-login-submit {
        width: 100%;
    }
}

/* =============================================
   PASSWORD SHOW/HIDE TOGGLE
   ============================================= */

.shq-password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.shq-password-input-wrap .shq-input {
    padding-right: 2.75rem;
    width: 100%;
}

.shq-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.shq-password-toggle:hover {
    color: #6b7280;
}

.shq-password-toggle svg {
    display: block;
}

/* =============================================
   PASSWORD MATCH VALIDATION
   ============================================= */

.shq-password-match-message {
    height: 18px;
    margin-top: 0.35rem;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.shq-password-match-message.match {
    color: #059669;
}

.shq-password-match-message.no-match {
    color: #dc2626;
}

/* Password field validation border colors */
.shq-input.shq-password-match {
    border-color: #059669 !important;
}

.shq-input.shq-password-no-match {
    border-color: #dc2626 !important;
}

/* =============================================
   STEP 2 PAYMENT LAYOUT — Tighter Styling
   ============================================= */

/* FIX 1: Remove nested payment box styling */
.shq-payment-section .payment_box {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-top: none !important;
}

.shq-payment-section .payment_box::before,
.shq-payment-section .payment_box::after {
    display: none !important;
}

/* Clean up the fieldset */
.shq-payment-section fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
}

.shq-payment-section fieldset legend {
    display: none !important;
}

/* Remove payment method container styling */
.shq-payment-section .wc_payment_method {
    padding: 0;
    margin-bottom: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
}

.shq-payment-section .wc_payment_method:has(input:checked) {
    border-color: transparent;
    background: transparent !important;
}

/* Style the credit card inputs to match our form style */
.shq-payment-section .form-row input.input-text,
.shq-payment-section input[type="text"],
.shq-payment-section input[type="tel"] {
    border: 2px solid var(--gray-200, #e5e7eb);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-ui, 'DM Sans', sans-serif);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    background: #fff;
}

.shq-payment-section .form-row input.input-text:focus,
.shq-payment-section input[type="text"]:focus,
.shq-payment-section input[type="tel"]:focus {
    border-color: var(--coral, #FF6048);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 96, 72, 0.1);
}

/* Tighten spacing between card fields */
.shq-payment-section .form-row {
    margin-bottom: 1rem !important;
}

.shq-payment-section .form-row-first,
.shq-payment-section .form-row-last {
    width: 48% !important;
    display: inline-block;
}

.shq-payment-section .form-row-first {
    margin-right: 4%;
}

/* FIX 2: Hide eCheck payment option */
.wc_payment_method.payment_method_authorize_net_cim_echeck {
    display: none !important;
}

/* Hide payment method radio when only one option */
.shq-payment-section .wc_payment_methods .wc_payment_method input[type="radio"] {
    display: none;
}

.shq-payment-section .wc_payment_methods .wc_payment_method > label {
    display: none;
}

/* FIX 3: Remove WooCommerce default place order button */
.shq-payment-section .place-order,
.shq-payment-section #place_order,
#payment .place-order {
    display: none !important;
}

/* FIX 4: Reduce "Payment Details" header spacing */
.shq-checkout-step[data-step="2"] .shq-section-title {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* FIX 5: Hide card logos from payment method label */
.shq-payment-section .sv-wc-payment-gateway-card-icons,
.shq-payment-section .payment_method_authorize_net_cim_credit_card > label img {
    display: none !important;
}

/* FIX 6: Hide "Pay securely" description text */
.shq-payment-section .payment_box > p:first-child {
    display: none !important;
}

/* Additional cleanup for Authorize.Net specific styling */
.shq-payment-section .wc-authorize-net-cim-credit-card-new-payment-method-form {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
}

/* Style labels inside the payment form */
.shq-payment-section .form-row label {
    font-family: var(--font-ui, 'DM Sans', sans-serif);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy, #1B2B4B);
    margin-bottom: 0.5rem;
    display: block;
}

/* Clean up any WooCommerce payment box arrows/triangles */
.shq-payment-section .payment_box:before,
.shq-payment-section .payment_methods > li .payment_box:before {
    display: none !important;
}

/* Ensure the payment methods list has no extra styling */
.shq-payment-section .woocommerce-checkout-payment,
.shq-payment-section #payment {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.shq-payment-section .payment_methods {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 0 1rem 0 !important;
}

/* ============================================
   ENHANCED ERROR STYLING
   ============================================ */

/* WooCommerce error messages - styled to match brand */
.shq-checkout-wrapper .woocommerce-error,
.shq-checkout-main .woocommerce-error {
    background: #FEF2F2 !important;
    border: 1px solid #FECACA !important;
    border-left: 4px solid #EF4444 !important;
    border-radius: 8px !important;
    color: #991B1B !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 1.5rem !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    list-style: none !important;
}

.shq-checkout-wrapper .woocommerce-error li,
.shq-checkout-main .woocommerce-error li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.shq-checkout-wrapper .woocommerce-error li::before,
.shq-checkout-main .woocommerce-error li::before {
    display: none !important;
}

/* WooCommerce notice styling */
.shq-checkout-wrapper .woocommerce-message,
.shq-checkout-main .woocommerce-message {
    background: #ECFDF5 !important;
    border: 1px solid #A7F3D0 !important;
    border-left: 4px solid #10B981 !important;
    border-radius: 8px !important;
    color: #065F46 !important;
    padding: 1rem 1.25rem 1rem 2.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* Processing state for submit button */
.shq-btn-submit.shq-processing {
    opacity: 0.8;
    cursor: wait;
}

/* Spinner animation */
.shq-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: shq-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* ============================================
   ENHANCED PAYMENT FORM STYLING
   ============================================ */

/* Ensure payment form inputs match our design */
.shq-payment-section input.input-text,
.shq-payment-section .wc-credit-card-form input,
.shq-payment-section .wc-authorize-net-cim-credit-card-new-payment-method-form input {
    width: 100% !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    font-family: 'DM Sans', sans-serif !important;
    background: #fff !important;
    color: #1B2B4B !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
}

.shq-payment-section input.input-text:focus,
.shq-payment-section .wc-credit-card-form input:focus,
.shq-payment-section .wc-authorize-net-cim-credit-card-new-payment-method-form input:focus {
    border-color: #FF6048 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 96, 72, 0.1) !important;
}

/* Form row spacing in payment section */
.shq-payment-section .form-row {
    margin-bottom: 1rem !important;
}

.shq-payment-section .form-row label {
    display: block !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #1B2B4B !important;
    margin-bottom: 0.5rem !important;
}

/* Two-column layout for expiry and CVV */
.shq-payment-section .form-row-first,
.shq-payment-section .form-row-last {
    width: 48% !important;
    display: inline-block !important;
    vertical-align: top !important;
}

.shq-payment-section .form-row-first {
    margin-right: 4% !important;
}

/* Remove any arrows or decorative elements from payment box */
.shq-payment-section .payment_box::before,
.shq-payment-section .payment_box::after,
.shq-payment-section .payment_method_authorize_net_cim_credit_card::before,
.shq-payment-section .payment_method_authorize_net_cim_credit_card::after {
    display: none !important;
    content: none !important;
}

/* Hide "Save to account" checkbox if present */
.shq-payment-section .woocommerce-SavedPaymentMethods-saveNew,
.shq-payment-section .wc-saved-payment-methods {
    display: none !important;
}

/* Credit card field icons - position inside input */
.shq-payment-section .sv-wc-payment-gateway-credit-card-form .form-row {
    position: relative;
}

/* Placeholder styling */
.shq-payment-section input::placeholder {
    color: #9CA3AF !important;
    opacity: 1 !important;
}

/* Remove any weird borders from fieldsets */
.shq-payment-section fieldset,
.shq-payment-section .wc-credit-card-form fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.shq-payment-section fieldset legend {
    display: none !important;
}

/* Hide the "Credit Card" header/title from payment gateway */
.shq-payment-section .wc_payment_method > label,
.shq-payment-section .payment_method_authorize_net_cim_credit_card > label {
    display: none !important;
}

/* Ensure proper spacing between payment form rows */
.shq-payment-section .wc-authorize-net-cim-credit-card-new-payment-method-form .form-row {
    margin-bottom: 1.25rem !important;
}

/* Last row no bottom margin */
.shq-payment-section .wc-authorize-net-cim-credit-card-new-payment-method-form .form-row:last-child {
    margin-bottom: 0 !important;
}

/* Secure badge styling */
.shq-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.shq-secure-badge svg {
    color: #22C55E;
}

/* ============================================
   CHECKOUT ERROR DISPLAY
   ============================================ */

.shq-checkout-error {
    display: none;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.shq-checkout-error .shq-error-icon {
    flex-shrink: 0;
    color: #ef4444;
    margin-top: 2px;
}

.shq-checkout-error .shq-error-message {
    flex: 1;
    color: #991b1b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.shq-checkout-error .shq-error-message strong {
    color: #7f1d1d;
}

/* Half-width form row for billing names */
.shq-form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .shq-form-row-half {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MOBILE CREDIT CARD FORM FIXES
   ============================================ */
@media (max-width: 768px) {
    /* Reduce padding on payment section container */
    .shq-payment-section {
        padding: 0.5rem !important;
    }

    /* Payment box - remove constraining padding */
    .shq-payment-section .payment_box,
    .payment_method_authorize_net_cim_credit_card .payment_box {
        padding: 0.5rem !important;
        margin: 0 !important;
    }

    /* Credit card fieldset - full width, minimal padding */
    #wc-authorize-net-cim-credit-card-credit-card-form,
    .wc-authorize-net-cim-credit-card-new-payment-method-form,
    .sv-wc-payment-gateway-credit-card-form {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Card number input - full width */
    .shq-payment-section .js-sv-wc-payment-gateway-credit-card-form-account-number,
    .shq-payment-section input[name="wc-authorize-net-cim-credit-card-account-number"],
    #wc-authorize-net-cim-credit-card-credit-card-form .form-row-wide input {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Expiry and CVV row - side by side with proper widths */
    .shq-payment-section .sv-wc-payment-gateway-credit-card-form .form-row-first,
    .shq-payment-section .sv-wc-payment-gateway-credit-card-form .form-row-last,
    #wc-authorize-net-cim-credit-card-credit-card-form .form-row-first,
    #wc-authorize-net-cim-credit-card-credit-card-form .form-row-last {
        width: 48% !important;
        float: left !important;
        margin-right: 2% !important;
        box-sizing: border-box !important;
    }

    #wc-authorize-net-cim-credit-card-credit-card-form .form-row-last {
        margin-right: 0 !important;
    }

    /* Expiry and CVV inputs */
    .shq-payment-section .js-sv-wc-payment-gateway-credit-card-form-expiry,
    .shq-payment-section .js-sv-wc-payment-gateway-credit-card-form-csc,
    .shq-payment-section input[name="wc-authorize-net-cim-credit-card-expiry"],
    .shq-payment-section input[name="wc-authorize-net-cim-credit-card-csc"] {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Clear floats */
    #wc-authorize-net-cim-credit-card-credit-card-form::after,
    .sv-wc-payment-gateway-credit-card-form::after {
        content: "";
        display: table;
        clear: both;
    }

    /* Form rows in payment section */
    .shq-payment-section .form-row {
        margin-bottom: 0.75rem !important;
        padding: 0 !important;
    }

    /* Labels */
    .shq-payment-section .form-row label {
        font-size: 0.85rem !important;
        margin-bottom: 0.25rem !important;
    }

    /* Inputs */
    .shq-payment-section .form-row input.input-text,
    .shq-payment-section .wc-credit-card-form input,
    .shq-payment-section .sv-wc-payment-gateway-credit-card-form input {
        padding: 0.75rem !important;
        font-size: 16px !important; /* Prevents iOS zoom */
    }
}

/* Discount row (inserted by coupon handler) */
.shq-discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(2, 0, 81, 0.08);
}
.shq-discount-label {
    font-size: 0.9rem;
    color: #020051;
}
.shq-discount-amount {
    font-weight: 600;
    color: #16a34a;
}

/* Coupon messages */
.shq-coupon-message {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0;
}
.shq-coupon-message.success {
    color: #16a34a;
}
.shq-coupon-message.error {
    color: #dc2626;
}
