/**
 * Eteform order wizard — RTL navy/gold UX
 */

.eteform-wizard-page {
    max-width: 960px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.eteform-wizard-page-title {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
}

.eteform-wizard-page-lead {
    color: #94a3b8;
    margin-bottom: 0;
}

.eteform-wizard-card {
    background: #111d32;
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.eteform-wizard-card .card-body {
    padding: 1.5rem;
}

.eteform-wizard-step-title {
    font-family: 'Cairo', sans-serif;
    color: #c9a227;
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.eteform-wizard-step-lead {
    color: #94a3b8;
    margin-bottom: 1.25rem;
}

.eteform-wizard-progress {
    margin: 1.5rem 0 2rem;
    overflow-x: auto;
}

.eteform-wizard-progress-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: min-content;
}

.eteform-wizard-progress-item {
    flex: 1 1 auto;
    min-width: 72px;
    text-align: center;
    opacity: 0.55;
}

.eteform-wizard-progress-item.is-active,
.eteform-wizard-progress-item.is-complete {
    opacity: 1;
}

.eteform-wizard-progress-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #132238;
    border: 2px solid rgba(201, 162, 39, 0.35);
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.eteform-wizard-progress-item.is-active .eteform-wizard-progress-num {
    background: linear-gradient(135deg, #c9a227, #e8c547);
    color: #0a1628;
    border-color: #c9a227;
}

.eteform-wizard-progress-item.is-complete .eteform-wizard-progress-num {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
    color: #2ecc71;
}

.eteform-wizard-progress-label {
    display: block;
    font-size: 0.65rem;
    line-height: 1.2;
    color: #94a3b8;
}

.eteform-wizard-progress-item.is-active .eteform-wizard-progress-label {
    color: #c9a227;
    font-weight: 600;
}

.eteform-wizard-plan-grid,
.eteform-wizard-addon-grid,
.eteform-wizard-address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.eteform-wizard-plan-card,
.eteform-wizard-addon-card,
.eteform-wizard-address-card {
    cursor: pointer;
    margin: 0;
    position: relative;
}

.eteform-wizard-plan-card input,
.eteform-wizard-addon-card input,
.eteform-wizard-address-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eteform-wizard-plan-inner,
.eteform-wizard-addon-inner,
.eteform-wizard-address-inner {
    background: #0a1628;
    border: 2px solid rgba(201, 162, 39, 0.2);
    border-radius: 10px;
    padding: 1.25rem 1rem;
    height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.eteform-wizard-plan-card input:checked + .eteform-wizard-plan-inner,
.eteform-wizard-addon-card input:checked + .eteform-wizard-addon-inner,
.eteform-wizard-address-card input:checked + .eteform-wizard-address-inner {
    border-color: #c9a227;
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.15);
}

.eteform-wizard-plan-name {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.eteform-wizard-plan-price {
    color: #c9a227;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.eteform-wizard-congrats {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.4);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    color: #2ecc71;
}

.eteform-wizard-name-hint {
    color: #64748b;
    margin-top: -0.5rem;
    margin-bottom: 0.75rem;
}

.eteform-company-search--wizard .eteform-company-search-input {
    background: #0a1628;
    border: 1px solid rgba(201, 162, 39, 0.3);
    color: #e8edf5;
}

.eteform-company-search--wizard .eteform-company-search-input::placeholder {
    color: #64748b;
}

.eteform-company-search--wizard .eteform-company-search-input:focus {
    border-color: #c9a227;
    box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.15);
}

.eteform-company-search--wizard .eteform-ch-available {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: #2ecc71;
}

.eteform-company-search--wizard .eteform-ch-taken,
.eteform-company-search--wizard .eteform-ch-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.45);
    color: #f8a5a5;
}

.eteform-company-search--wizard .eteform-ch-loading {
    background: rgba(10, 22, 40, 0.5);
    border: 1px solid rgba(201, 162, 39, 0.2);
    color: #94a3b8;
}

.eteform-company-search--wizard .eteform-similar-title {
    color: #c9a227;
}

.eteform-company-search--wizard .eteform-similar-list li {
    color: #94a3b8;
    border-bottom-color: rgba(148, 163, 184, 0.15);
}

.eteform-wizard-note {
    color: #64748b;
}

.eteform-wizard-review-dl dt {
    color: #c9a227;
    font-weight: 600;
    margin-top: 0.75rem;
}

.eteform-wizard-review-dl dd {
    color: #e8edf5;
}

.eteform-wizard-payment-title {
    font-family: 'Cairo', sans-serif;
    color: #c9a227;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.eteform-wizard-payment-lead {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.eteform-wizard-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.65rem;
}

.eteform-wizard-payment-card {
    display: block;
    margin: 0;
    cursor: pointer;
}

.eteform-wizard-payment-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eteform-wizard-payment-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: #132238;
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 10px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.eteform-wizard-payment-card:hover .eteform-wizard-payment-inner {
    border-color: rgba(201, 162, 39, 0.45);
}

.eteform-wizard-payment-card:has(.eteform-wizard-payment-radio:checked) .eteform-wizard-payment-inner {
    border-color: #c9a227;
    background: rgba(201, 162, 39, 0.12);
}

.eteform-wizard-payment-icon {
    font-size: 1.35rem;
    color: #c9a227;
}

.eteform-wizard-payment-name {
    font-size: 0.875rem;
    color: #e8edf5;
    line-height: 1.3;
}

.eteform-wizard-payment-empty {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.35);
    color: #f8e6a0;
}

.w-hidden {
    display: none !important;
}

.eteform-wizard-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 18, 32, 0.82);
}

.eteform-wizard-cart-overlay-inner {
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.eteform-wizard-cart-overlay-inner p {
    margin-top: 1rem;
    font-size: 1.1rem;
}

.eteform-wizard-cart-autosubmit.is-submitting #order-standard_cart {
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* Wizard checkout — full-width, no product sidebar */
.eteform-checkout-layout--wizard .eteform-checkout-main {
    max-width: 820px;
    margin: 0 auto;
}

.eteform-wizard-cart-minimal {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eteform-checkout-layout--wizard ~ .cart-sidebar,
.eteform-wizard-checkout-mode .cart-sidebar {
    display: none !important;
}

/* Hide domain renewal / categories sidebar in wizard checkout */
.eteform-checkout-layout--wizard .cart-sidebar,
body.eteform-wizard-checkout [menuItemName="Categories"],
body.eteform-wizard-checkout [menuItemName="Actions"] {
    display: none !important;
}

.eteform-kyc-banner {
    border-right: 4px solid #c9a227;
}

.eteform-kyc-verified-pill {
    border-right: 4px solid #28a745;
}

ul.eteform-order-steps {
    display: none;
}

/* Hide WHMCS cart sidebar progress when wizard owns the flow */
.eteform-wizard-cart-page .cart-sidebar [menuItemName="View Cart"],
.eteform-wizard-cart-page .cart-sidebar [menuitemname="View Cart"] {
    display: none !important;
}

/* Hide any WHMCS branding that may leak from default order form templates */
#order-standard_cart a[href*="whmcs.com"],
#order-standard_cart img[src*="whmcs"],
#order-standard_cart img[alt*="WHMCS" i],
.footer a[href*="whmcs.com"],
.poweredby,
.whmcs-powered-by {
    display: none !important;
}

@media (max-width: 767px) {
    .eteform-wizard-plan-grid,
    .eteform-wizard-addon-grid,
    .eteform-wizard-address-grid {
        grid-template-columns: 1fr;
    }
}
