@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;600;700&family=Oswald:wght@500;600&family=Roboto:wght@400;500;700&display=swap');

/* ============================================================
   EcoBambo Custom Quote Plugin – Main Stylesheet
   Phase 5 Master Edition: Black / White / Exact Golden Design System
   Theme Typography: Roboto (Body 400, 17px) + Oswald (Headings 500)
   ============================================================ */

:root {
    --ecobambo-primary: #000000;
    --ecobambo-secondary: #1F2937;
    --ecobambo-accent: #D4AF37;
    --ecobambo-white: #FFFFFF;
    --ecobambo-light-bg: #F9FAFB;
    --ecobambo-border: #E5E7EB;
    --ecobambo-text: #111827;
    --ecobambo-text-light: #6B7280;
    --ecobambo-radius: 16px;
    --ecobambo-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* Active Theme Typography Integration */
    --ecobambo-font: var(--theme-body-font, var(--font-body, 'Roboto', sans-serif));
    --ecobambo-font-heading: var(--theme-heading-font, var(--font-heading, 'Oswald', sans-serif));
    --ecobambo-font-urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', Tahoma, sans-serif;
    --ecobambo-font-size-base: 17px;
    --ecobambo-font-weight-body: 400;
    --ecobambo-font-weight-heading: 500;
}

.ecobambo-configurator-wrapper,
.ecobambo-dashboard-wrap {
    font-family: var(--ecobambo-font);
    font-size: var(--ecobambo-font-size-base, 17px);
    font-weight: var(--ecobambo-font-weight-body, 400);
    line-height: 1.5;
    color: var(--ecobambo-text);
    box-sizing: border-box;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

/* Headings inherit active theme Oswald heading family with 500 weight */
.ecobambo-configurator-wrapper h1,
.ecobambo-configurator-wrapper h2,
.ecobambo-configurator-wrapper h3,
.ecobambo-configurator-wrapper h4,
.ecobambo-configurator-wrapper h5,
.ecobambo-configurator-wrapper h6,
.ecobambo-heading,
.ecobambo-preview-title,
.ecobambo-card-header h3,
.ecobambo-price-value,
.ecobambo-customer-summary h4,
.ecobambo-success-title {
    font-family: var(--ecobambo-font-heading);
    font-weight: var(--ecobambo-font-weight-heading, 500);
    letter-spacing: 0.02em;
}

/* Normal / body / form / interface text strictly uses Roboto */
.ecobambo-configurator-wrapper p,
.ecobambo-configurator-wrapper label,
.ecobambo-configurator-wrapper input,
.ecobambo-configurator-wrapper select,
.ecobambo-configurator-wrapper textarea,
.ecobambo-configurator-wrapper button,
.ecobambo-configurator-wrapper span,
.ecobambo-configurator-wrapper small,
.ecobambo-field-error,
.ecobambo-dropzone-text,
.ecobambo-dropzone-hint,
.ecobambo-btn-text,
.ecobambo-intro-subtitle,
.ecobambo-preview-tip,
.ecobambo-estimate-note,
.ecobambo-form-trust {
    font-family: var(--ecobambo-font);
}

.ecobambo-configurator-wrapper *,
.ecobambo-dashboard-wrap * {
    box-sizing: border-box;
}

.ecobambo-lang-switch {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

.ecobambo-lang-btn {
    background: var(--ecobambo-white);
    border: 1px solid var(--ecobambo-border);
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ecobambo-primary);
    transition: var(--ecobambo-transition);
}

.ecobambo-lang-btn.active,
.ecobambo-lang-btn:hover {
    background: var(--ecobambo-primary);
    color: var(--ecobambo-secondary);
    border-color: var(--ecobambo-primary);
}

.ecobambo-page-intro {
    text-align: center;
    margin-bottom: 28px;
}

.ecobambo-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.14);
    color: var(--ecobambo-primary);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ecobambo-heading {
    font-size: clamp(1.8rem, 2.4vw, 2.4rem);
    color: var(--ecobambo-primary);
    margin: 0 0 8px;
}

.ecobambo-intro,
.ecobambo-product-name {
    text-align: center;
    color: var(--ecobambo-text-light);
    margin: 0;
    font-size: 1.02rem;
}

.ecobambo-config-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.ecobambo-preview-panel {
    position: relative;
}

.ecobambo-preview-sticky {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ecobambo-preview-card,
.ecobambo-form-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
    border: 1px solid rgba(10, 26, 47, 0.06);
    border-radius: calc(var(--ecobambo-radius) + 4px);
    box-shadow: 0 18px 45px rgba(10, 26, 47, 0.08);
}

.ecobambo-preview-card {
    padding: 16px;
}

.ecobambo-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.ecobambo-preview-kicker {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.16);
    color: var(--ecobambo-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ecobambo-preview-title {
    margin: 0;
    font-size: 1rem;
    color: var(--ecobambo-primary);
}

.ecobambo-preview-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ecobambo-preview-mode-switch {
    display: inline-flex;
    background: rgba(10, 26, 47, 0.06);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}

.ecobambo-mode-tab {
    background: transparent;
    border: none;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ecobambo-text-light);
    cursor: pointer;
    transition: var(--ecobambo-transition);
}

.ecobambo-mode-tab.active,
.ecobambo-mode-tab:hover {
    background: var(--ecobambo-primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(10, 26, 47, 0.15);
}

.ecobambo-preview-tip {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(10, 26, 47, 0.04);
    color: var(--ecobambo-text-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
}

.ecobambo-preview-tip[data-state="active"] {
    background: rgba(212, 175, 55, 0.16);
    color: var(--ecobambo-primary);
}

.ecobambo-preview-image {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    max-height: 380px;
    min-height: 280px;
    border-radius: calc(var(--ecobambo-radius) - 4px);
    overflow: hidden;
    background: linear-gradient(135deg, #f5efe2 0%, #eef2f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    touch-action: pan-y pinch-zoom;
}

.ecobambo-preview-image img,
.ecobambo-preview-image object,
.ecobambo-preview-image .ecobambo-3d-viewer,
.ecobambo-preview-image .ecobambo-8angle-viewer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 8-Angle Product Visualizer */
.ecobambo-8angle-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.08) 0%, rgba(245, 239, 226, 0.4) 100%);
}

.ecobambo-8angle-viewer:active {
    cursor: grabbing;
}

.ecobambo-angle-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecobambo-angle-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: opacity 0.15s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.ecobambo-angle-badge {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
    color: var(--ecobambo-accent, #D4AF37);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ecobambo-angle-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid rgba(10, 26, 47, 0.08);
    border-radius: 999px;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ecobambo-angle-btn {
    background: var(--ecobambo-primary, #000000);
    color: var(--ecobambo-accent, #D4AF37);
    border: 1px solid var(--ecobambo-accent, #D4AF37);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.ecobambo-angle-btn:hover {
    background: var(--ecobambo-accent, #D4AF37);
    color: var(--ecobambo-primary, #000000);
    transform: scale(1.08);
}

.ecobambo-angle-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-grow: 1;
}

.ecobambo-angle-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ecobambo-angle-dot:hover {
    background: rgba(212, 175, 55, 0.6);
    transform: scale(1.2);
}

.ecobambo-angle-dot.active {
    background: var(--ecobambo-accent, #D4AF37);
    border-color: var(--ecobambo-primary, #000000);
    transform: scale(1.35);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.6);
}

.ecobambo-3d-viewer canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.ecobambo-svg-overlay {
    pointer-events: none;
}

.ecobambo-covered-area-row strong {
    color: var(--ecobambo-primary);
    font-weight: 700;
}

.ecobambo-price-breakdown {
    width: 100%;
    background: var(--ecobambo-white);
    border-radius: var(--ecobambo-radius);
    padding: 14px 16px;
    border: 1px solid rgba(10, 26, 47, 0.06);
}

.ecobambo-price-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ecobambo-border);
}

.ecobambo-price-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ecobambo-text-light);
}

.ecobambo-price-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ecobambo-primary);
}

.ecobambo-price-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--ecobambo-text);
    border-bottom: 1px solid var(--ecobambo-border);
}

.ecobambo-price-row:last-child {
    border-bottom: none;
}

.ecobambo-total-row {
    font-size: 17px;
    color: var(--ecobambo-primary);
    margin-top: 6px;
}

.ecobambo-form-panel {
    position: relative;
}

.ecobambo-form-scroll {
    padding: 22px 24px 28px;
}

.ecobambo-configurator-wrapper {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.ecobambo-preview-image img,
.ecobambo-preview-image object {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.ecobambo-mode-select {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ecobambo-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: var(--ecobambo-primary);
    padding: 10px 14px;
    border: 1px solid var(--ecobambo-border);
    border-radius: 999px;
    background: var(--ecobambo-white);
}

.ecobambo-radio-label input {
    margin: 0;
}

.ecobambo-field {
    margin-bottom: 12px;
}

.ecobambo-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--ecobambo-primary);
    font-size: 14px;
}

.ecobambo-field input[type="text"],
.ecobambo-field input[type="number"],
.ecobambo-field input[type="tel"],
.ecobambo-field input[type="email"],
.ecobambo-field select,
.ecobambo-field textarea,
.ecobambo-radio-label,
.ecobambo-btn {
    touch-action: manipulation;
}

.ecobambo-field input[type="text"],
.ecobambo-field input[type="number"],
.ecobambo-field input[type="tel"],
.ecobambo-field input[type="email"],
.ecobambo-field select,
.ecobambo-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--ecobambo-border);
    border-radius: 14px;
    font-size: 15px;
    color: var(--ecobambo-text);
    background: var(--ecobambo-white);
    transition: border-color var(--ecobambo-transition), box-shadow var(--ecobambo-transition), transform var(--ecobambo-transition);
}

.ecobambo-field input:focus,
.ecobambo-field select:focus,
.ecobambo-field textarea:focus {
    border-color: var(--ecobambo-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.ecobambo-field textarea {
    resize: vertical;
    min-height: 112px;
}

.ecobambo-field small {
    display: block;
    color: var(--ecobambo-text-light);
    margin-top: 4px;
    font-size: 13px;
}

.ecobambo-field.is-focused {
    transform: translateY(-1px);
}

.ecobambo-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ecobambo-field-full {
    grid-column: 1 / -1;
}

.ecobambo-customer-info {
    border: 1px solid var(--ecobambo-border);
    border-radius: var(--ecobambo-radius);
    padding: 0;
    margin-bottom: 16px;
    background: transparent;
    border: none;
}

.ecobambo-card {
    background: var(--ecobambo-white);
    border: 1px solid rgba(10, 26, 47, 0.06);
    border-radius: var(--ecobambo-radius);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 10px 28px rgba(10, 26, 47, 0.04);
}

.ecobambo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.ecobambo-card-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--ecobambo-primary);
}

.ecobambo-card-header span {
    font-size: 13px;
    color: var(--ecobambo-text-light);
}

.ecobambo-actions-card {
    padding-top: 12px;
}

.ecobambo-customer-info legend {
    font-weight: 700;
    color: var(--ecobambo-primary);
    padding: 0 8px;
}

.ecobambo-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.ecobambo-btn {
    flex: 1 1 auto;
    min-width: 170px;
    padding: 13px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: transform var(--ecobambo-transition), box-shadow var(--ecobambo-transition), background var(--ecobambo-transition), border-color var(--ecobambo-transition), color var(--ecobambo-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    touch-action: manipulation;
    letter-spacing: 0.02em;
    box-sizing: border-box;
}

.ecobambo-btn:hover {
    transform: translateY(-1px);
}

.ecobambo-btn:active {
    transform: translateY(0);
}

/* Pay Now (Alfa Gateway Direct Order) - Primary Black with Gold Hover */
.ecobambo-btn-pay,
.ecobambo-btn-primary {
    background: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.ecobambo-btn-pay:hover,
.ecobambo-btn-primary:hover {
    background: var(--ecobambo-accent);
    color: #000000;
    border-color: var(--ecobambo-accent);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

/* Quote Submission - High contrast secondary with black border */
.ecobambo-btn-order,
.ecobambo-btn-secondary {
    background: #FFFFFF;
    color: #000000;
    border: 2px solid #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ecobambo-btn-order:hover,
.ecobambo-btn-secondary:hover {
    background: #000000;
    color: #FFFFFF;
    border-color: #000000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* WhatsApp Direct Button */
.ecobambo-btn-wa {
    background: #25D366;
    color: #FFFFFF;
    border: 2px solid #25D366;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.2);
}

.ecobambo-btn-wa:hover {
    background: #1eb956;
    color: #FFFFFF;
    border-color: #1eb956;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.32);
}

/* Reset Button */
.ecobambo-btn-reset {
    background: transparent;
    color: var(--ecobambo-text-light);
    border: 1.5px solid var(--ecobambo-border);
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex: 0 0 auto;
    min-width: auto;
}

.ecobambo-btn-reset:hover {
    background: #000000;
    color: #FFFFFF;
    border-color: #000000;
}

.ecobambo-btn-reset-order {
    display: inline-block;
    background: transparent;
    color: var(--ecobambo-primary);
    border: 2px solid var(--ecobambo-primary);
    padding: 10px 22px;
    border-radius: var(--ecobambo-radius);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 14px;
    transition: var(--ecobambo-transition);
}

.ecobambo-btn-reset-order:hover {
    background: var(--ecobambo-primary);
    color: var(--ecobambo-white);
}

.ecobambo-stats-cards {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.ecobambo-stat-card {
    flex: 1 1 150px;
    background: var(--ecobambo-white);
    border-radius: var(--ecobambo-radius);
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.ecobambo-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--ecobambo-primary);
}

.ecobambo-stat-label {
    font-size: 13px;
    color: var(--ecobambo-text-light);
}

.ecobambo-filters-form {
    margin-bottom: 20px;
}

.ecobambo-filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.ecobambo-search-input {
    flex: 2 1 200px;
    padding: 10px;
    border: 1px solid var(--ecobambo-border);
    border-radius: var(--ecobambo-radius);
}

.ecobambo-filter-row select {
    padding: 10px;
    border: 1px solid var(--ecobambo-border);
    border-radius: var(--ecobambo-radius);
}

.ecobambo-leads-table th {
    background: var(--ecobambo-primary);
    color: var(--ecobambo-secondary);
    padding: 12px;
    font-weight: 600;
}

.ecobambo-leads-table td {
    padding: 10px;
    vertical-align: middle;
}

.ecobambo-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.ecobambo-status-new { background: #E3F2FD; color: #1565C0; }
.ecobambo-status-contacted { background: #FFF3E0; color: #E65100; }
.ecobambo-status-follow-up { background: #F3E5F5; color: #6A1B9A; }
.ecobambo-status-quote-sent { background: #E8F5E9; color: #2E7D32; }
.ecobambo-status-won { background: #C8E6C9; color: #1B5E20; }
.ecobambo-status-lost { background: #FFEBEE; color: #B71C1C; }
.ecobambo-status-closed { background: #ECEFF1; color: #546E7A; }

.ecobambo-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecobambo-modal-content {
    background: var(--ecobambo-white);
    border-radius: var(--ecobambo-radius);
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.ecobambo-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 24px;
    cursor: pointer;
    color: var(--ecobambo-text-light);
}

@media (max-width: 1024px) {
    .ecobambo-config-layout {
        grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
        gap: 20px;
    }

    .ecobambo-preview-sticky {
        position: relative;
        top: auto;
    }

    .ecobambo-preview-image {
        min-height: 340px;
    }

    .ecobambo-form-scroll {
        padding: 18px 16px 22px;
    }
}

@media (max-width: 820px) {
    .ecobambo-config-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ecobambo-preview-panel {
        order: 1;
    }

    .ecobambo-preview-sticky {
        position: relative;
        top: auto;
        gap: 12px;
    }

    .ecobambo-form-panel {
        order: 2;
    }
}

@media (max-width: 768px) {
    .ecobambo-configurator-wrapper {
        padding: 12px 10px;
    }

    .ecobambo-page-intro {
        margin-bottom: 18px;
    }

    .ecobambo-heading {
        font-size: 1.6rem;
    }

    .ecobambo-config-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ecobambo-preview-panel {
        order: 1;
    }

    .ecobambo-preview-sticky {
        position: relative;
        top: auto;
        gap: 12px;
    }

    .ecobambo-preview-card {
        padding: 12px;
    }

    .ecobambo-preview-image {
        aspect-ratio: 1 / 1;
        max-height: 280px;
        min-height: 220px;
        height: auto;
    }

    .ecobambo-preview-tip {
        margin-bottom: 0;
        padding: 8px 10px;
        font-size: 11px;
    }

    .ecobambo-form-scroll {
        padding: 14px 12px 18px;
    }

    .ecobambo-card {
        padding: 14px;
    }

    .ecobambo-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ecobambo-mode-select {
        flex-direction: column;
    }

    .ecobambo-radio-label {
        border-radius: 16px;
        justify-content: space-between;
        padding: 12px 14px;
    }

    .ecobambo-field input[type="text"],
    .ecobambo-field input[type="number"],
    .ecobambo-field input[type="tel"],
    .ecobambo-field input[type="email"],
    .ecobambo-field select,
    .ecobambo-field textarea {
        padding: 14px 14px;
        font-size: 16px;
    }

    .ecobambo-btn-group {
        flex-direction: column;
    }

    .ecobambo-btn {
        width: 100%;
        min-width: 100%;
        padding: 16px 18px;
        font-size: 16px;
    }

    .ecobambo-price-breakdown {
        padding: 12px;
    }

    .ecobambo-stats-cards {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .ecobambo-configurator-wrapper {
        padding: 10px 8px;
    }

    .ecobambo-heading {
        font-size: 1.35rem;
    }

    .ecobambo-preview-image {
        aspect-ratio: 1 / 1;
        max-height: 260px;
        min-height: 200px;
    }

    .ecobambo-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .ecobambo-mode-select {
        gap: 10px;
    }

    .ecobambo-radio-label {
        width: 100%;
        justify-content: space-between;
    }

    .ecobambo-form-scroll {
        padding: 12px 8px 16px;
    }

    .ecobambo-price-breakdown {
        padding: 12px 10px;
    }
}

@media (max-width: 360px) {
    .ecobambo-configurator-wrapper {
        padding: 8px 6px;
    }

    .ecobambo-heading {
        font-size: 1.2rem;
    }

    .ecobambo-preview-image {
        aspect-ratio: 1 / 1;
        max-height: 230px;
        min-height: 180px;
    }

    .ecobambo-card {
        padding: 10px 8px;
    }

    .ecobambo-btn {
        padding: 14px 12px;
        font-size: 15px;
    }
}

/* ============================================================
   Phase 4: Visual UX, 3D WebGL Viewer, Summary Card & Quotes
   ============================================================ */

/* 3D Viewer Container & States */
.ecobambo-3d-viewer {
    border-radius: var(--ecobambo-radius);
    overflow: hidden;
    background: #f8fafc;
}

.ecobambo-3d-viewer canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.ecobambo-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(212, 175, 55, 0.25);
    border-top-color: var(--ecobambo-accent);
    border-radius: 50%;
    animation: ecobamboSpin 0.8s linear infinite;
}

@keyframes ecobamboSpin {
    to { transform: rotate(360deg); }
}

.ecobambo-3d-error {
    border-radius: 12px;
}

.ecobambo-3d-empty {
    border-radius: 12px;
}

/* Customer-Safe Configuration Summary Card */
.ecobambo-customer-summary {
    background: #ffffff;
    border: 1px solid var(--ecobambo-border);
    border-radius: 14px;
    padding: 14px 18px;
    margin-top: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ecobambo-summary-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.ecobambo-summary-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ecobambo-primary);
    margin: 0;
}

.ecobambo-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
}

@media (max-width: 480px) {
    .ecobambo-summary-grid {
        grid-template-columns: 1fr;
    }
}

.ecobambo-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 2px 0;
}

.ecobambo-summary-label {
    color: var(--ecobambo-text-light);
    font-weight: 500;
}

.ecobambo-summary-value {
    color: var(--ecobambo-primary);
    font-weight: 600;
}

/* Success Message & Quote Reference Badge */
.ecobambo-success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--ecobambo-radius);
    padding: 24px;
    text-align: center;
    margin-top: 20px;
}

.ecobambo-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #22c55e;
    color: #ffffff;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
}

.ecobambo-success-title {
    color: #166534;
    font-size: 1.25rem;
    margin: 0 0 8px;
}

.ecobambo-quote-ref-line {
    font-size: 14px;
    color: #334155;
    margin: 10px 0;
}

.ecobambo-quote-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 3px 10px;
    border-radius: 6px;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #bae6fd;
}

.ecobambo-success-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 6px 0 0;
}

/* Quotes & Status Badges (Admin) */
.ecobambo-quote-status-draft { background: #f1f5f9; color: #475569; }
.ecobambo-quote-status-submitted { background: #e0f2fe; color: #0369a1; }
.ecobambo-quote-status-sent { background: #fef3c7; color: #92400e; }
.ecobambo-quote-status-viewed { background: #e0e7ff; color: #3730a3; }
.ecobambo-quote-status-accepted { background: #dcfce7; color: #15803d; }
.ecobambo-quote-status-rejected { background: #fee2e2; color: #b91c1c; }
.ecobambo-quote-status-expired { background: #f3f4f6; color: #6b7280; }
.ecobambo-quote-status-cancelled { background: #fecdd3; color: #9f1239; }

/* ============================================================
   Phase 5: Professional UI/UX, Accessibility, Dropzone & States
   ============================================================ */

/* WCAG 2.1 AA Focus-Visible Outlines */
.ecobambo-configurator-wrapper :focus-visible,
.ecobambo-dashboard-wrap :focus-visible {
    outline: 2px solid var(--ecobambo-accent) !important;
    outline-offset: 2px !important;
}

/* Reduced Motion Safety */
@media (prefers-reduced-motion: reduce) {
    .ecobambo-configurator-wrapper *,
    .ecobambo-configurator-wrapper *::before,
    .ecobambo-configurator-wrapper *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Inline Field Validation Feedback */
.ecobambo-field-error {
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ecobambo-field-error::before {
    content: "⚠ ";
    font-size: 13px;
}

.ecobambo-field.has-error input,
.ecobambo-field.has-error select,
.ecobambo-field.has-error textarea {
    border-color: #ef4444 !important;
    background-color: #fffafb;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* Non-blocking Form Alert Banner */
.ecobambo-alert-banner {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ecobambo-alert-banner.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.ecobambo-alert-banner.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.ecobambo-alert-banner.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.ecobambo-alert-close {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: inherit;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.ecobambo-alert-close:hover {
    opacity: 1;
}

/* CTA Submit Button States & Spinner */
.ecobambo-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: ecobamboSpin 0.7s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.ecobambo-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Estimate Smooth Transition & Loading State */
.ecobambo-price-value {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ecobambo-price-value.is-loading {
    opacity: 0.55;
    transform: scale(0.98);
}

/* Upload Dropzone & File List UI */
.ecobambo-upload-field {
    margin-top: 10px;
}

.ecobambo-dropzone {
    position: relative;
    border: 2px dashed var(--ecobambo-border);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    background: var(--ecobambo-light-bg);
    cursor: pointer;
    transition: border-color var(--ecobambo-transition), background var(--ecobambo-transition);
}

.ecobambo-dropzone:hover,
.ecobambo-dropzone.is-dragover {
    border-color: var(--ecobambo-accent);
    background: #fffdf5;
}

.ecobambo-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.ecobambo-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.ecobambo-dropzone-icon {
    font-size: 24px;
    color: var(--ecobambo-text-light);
}

.ecobambo-dropzone-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--ecobambo-primary);
}

.ecobambo-dropzone-hint {
    font-size: 12px;
    color: var(--ecobambo-text-light);
}

.ecobambo-file-preview {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--ecobambo-border);
    border-radius: 8px;
    padding: 6px 12px;
    margin-top: 10px;
    max-width: 100%;
    position: relative;
    z-index: 3;
}

.ecobambo-file-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--ecobambo-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 240px;
}

.ecobambo-file-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.ecobambo-file-remove:hover {
    color: #b91c1c;
}

.ecobambo-file-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ecobambo-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--ecobambo-border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
}

/* ============================================================
   Phase 5 Master: Header, Section Badges, Controls & Typography
   ============================================================ */

.ecobambo-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--ecobambo-border);
}

.ecobambo-brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--ecobambo-primary);
    text-transform: uppercase;
}

.ecobambo-kicker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ecobambo-accent);
    display: inline-block;
}

.ecobambo-lang-divider {
    color: var(--ecobambo-border);
    font-weight: 300;
}

.ecobambo-intro-subtitle {
    text-align: center;
    color: var(--ecobambo-text-light);
    font-size: 15px;
    max-width: 680px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

/* Section Numbering Badges (01 to 07) */
.ecobambo-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #000000;
    color: var(--ecobambo-accent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ecobambo-preview-kicker-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ecobambo-card-compact {
    padding: 18px 20px;
}

.ecobambo-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.ecobambo-card-header h3 {
    margin: 0 0 3px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ecobambo-primary);
    line-height: 1.3;
}

.ecobambo-card-header span {
    font-size: 13px;
    color: var(--ecobambo-text-light);
    line-height: 1.4;
    display: block;
}

/* Product Display Readonly Field */
.ecobambo-product-display {
    position: relative;
    display: flex;
    align-items: center;
}

.ecobambo-product-display-icon {
    position: absolute;
    left: 14px;
    color: var(--ecobambo-accent);
    font-size: 14px;
    pointer-events: none;
}

.ecobambo-product-display input {
    padding-left: 36px !important;
    background: #F9FAFB !important;
    font-weight: 600;
    cursor: default;
    border-color: #E5E7EB;
}

/* Custom Select Styling */
.ecobambo-select-wrap {
    position: relative;
    width: 100%;
}

.ecobambo-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 13px;
    cursor: pointer;
}

/* Input with Unit (ft / sq ft) */
.ecobambo-input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.ecobambo-input-with-unit input {
    padding-right: 36px !important;
}

.ecobambo-input-with-unit span {
    position: absolute;
    right: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ecobambo-text-light);
    pointer-events: none;
}

/* Required Indicator */
.ecobambo-required {
    color: #DC2626;
    font-weight: 700;
    margin-left: 2px;
}

/* Trust Guarantee Banner */
.ecobambo-form-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 14px;
}

.ecobambo-trust-icon {
    font-weight: 800;
    font-size: 15px;
    color: #16A34A;
    flex-shrink: 0;
}

.ecobambo-submit-arrow,
.ecobambo-pay-icon,
.ecobambo-wa-icon {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.ecobambo-btn-order:hover .ecobambo-submit-arrow {
    transform: translateX(3px);
}

/* ============================================================
   Responsive Mobile Optimization (320px - 768px)
   Paired 2-column inputs for compact mobile form experience
   ============================================================ */

@media (max-width: 768px) {
    .ecobambo-field-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .ecobambo-field-full {
        grid-column: 1 / -1;
    }

    .ecobambo-top-bar {
        flex-direction: row;
        justify-content: space-between;
    }

    .ecobambo-card-compact {
        padding: 14px 12px;
    }

    .ecobambo-btn-group {
        flex-direction: column;
        width: 100%;
    }

    .ecobambo-btn {
        width: 100%;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .ecobambo-field-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .ecobambo-field input,
    .ecobambo-field select {
        padding: 11px 10px;
        font-size: 14px;
    }

    .ecobambo-input-with-unit input {
        padding-right: 28px !important;
    }

    .ecobambo-input-with-unit span {
        right: 8px;
        font-size: 12px;
    }

    .ecobambo-card-header h3 {
        font-size: 15px;
    }

    .ecobambo-card-header span {
        font-size: 12px;
    }
}

/* ============================================================
   Bidirectional RTL Layout System (Pure Urdu Support)
   Activated on [dir="rtl"] or .ecobambo-rtl
   Typography: Noto Nastaliq Urdu (400, 600, 700)
   Strict visual density, identical button/field proportions, zero glyph clipping.
   ============================================================ */

[dir="rtl"] .ecobambo-configurator-wrapper,
.ecobambo-configurator-wrapper[dir="rtl"],
.ecobambo-rtl {
    direction: rtl;
    text-align: right;
    --ecobambo-font: var(--ecobambo-font-urdu);
    --ecobambo-font-heading: var(--ecobambo-font-urdu);
    font-family: var(--ecobambo-font-urdu);
}

/* Ensure all nested text elements in RTL inherit the Urdu Nastaliq font */
[dir="rtl"] .ecobambo-configurator-wrapper *,
.ecobambo-rtl * {
    font-family: var(--ecobambo-font-urdu);
}

/* Preserve standard legible font for purely numeric / LTR values */
[dir="rtl"] .ecobambo-field input[type="number"],
.ecobambo-rtl .ecobambo-field input[type="number"],
[dir="rtl"] .ecobambo-field input[type="tel"],
.ecobambo-rtl .ecobambo-field input[type="tel"],
[dir="rtl"] .ecobambo-field input[type="email"],
.ecobambo-rtl .ecobambo-field input[type="email"],
[dir="rtl"] .ecobambo-input-with-unit span,
.ecobambo-rtl .ecobambo-input-with-unit span,
[dir="rtl"] #ecobambo-total-price,
.ecobambo-rtl #ecobambo-total-price,
[dir="rtl"] #ecobambo-covered-area,
.ecobambo-rtl #ecobambo-covered-area {
    font-family: var(--theme-heading-font, var(--font-heading, 'Oswald', sans-serif));
}

/* Headings in RTL */
[dir="rtl"] .ecobambo-heading,
.ecobambo-rtl .ecobambo-heading {
    font-family: var(--ecobambo-font-urdu);
    line-height: 1.55;
}

[dir="rtl"] .ecobambo-preview-title,
.ecobambo-rtl .ecobambo-preview-title,
[dir="rtl"] .ecobambo-card-header h3,
.ecobambo-rtl .ecobambo-card-header h3,
[dir="rtl"] .ecobambo-customer-summary h4,
.ecobambo-rtl .ecobambo-customer-summary h4 {
    font-family: var(--ecobambo-font-urdu);
    line-height: 1.6;
    letter-spacing: normal;
}

[dir="rtl"] .ecobambo-price-value,
.ecobambo-rtl .ecobambo-price-value {
    line-height: 1.4;
    direction: ltr;
    text-align: left;
}

/* Paragraphs, descriptions and helpers in RTL */
[dir="rtl"] .ecobambo-intro-subtitle,
.ecobambo-rtl .ecobambo-intro-subtitle,
[dir="rtl"] .ecobambo-preview-tip,
.ecobambo-rtl .ecobambo-preview-tip,
[dir="rtl"] .ecobambo-estimate-note,
.ecobambo-rtl .ecobambo-estimate-note,
[dir="rtl"] .ecobambo-card-header span,
.ecobambo-rtl .ecobambo-card-header span {
    line-height: 1.85;
}

[dir="rtl"] .ecobambo-field label,
.ecobambo-rtl .ecobambo-field label {
    line-height: 1.8;
    margin-bottom: 6px;
    font-weight: 700;
}

[dir="rtl"] .ecobambo-field small,
.ecobambo-rtl .ecobambo-field small {
    line-height: 1.7;
}

/* Top bar alignment in RTL */
[dir="rtl"] .ecobambo-top-bar,
.ecobambo-rtl .ecobambo-top-bar {
    flex-direction: row-reverse;
}

/* Header row alignment */
[dir="rtl"] .ecobambo-card-header,
.ecobambo-rtl .ecobambo-card-header {
    flex-direction: row;
}

/* Product display read-only badge in RTL */
[dir="rtl"] .ecobambo-product-display-icon,
.ecobambo-rtl .ecobambo-product-display-icon {
    left: auto;
    right: 14px;
}

[dir="rtl"] .ecobambo-product-display input,
.ecobambo-rtl .ecobambo-product-display input {
    padding-left: 14px !important;
    padding-right: 36px !important;
    text-align: right;
}

/* Select dropdowns in RTL */
[dir="rtl"] .ecobambo-select-wrap select,
.ecobambo-rtl .ecobambo-select-wrap select {
    padding-right: 14px;
    padding-left: 36px;
    background-position: left 14px center;
    text-align: right;
    direction: rtl;
}

/* Inputs with unit suffix (ft) in RTL */
[dir="rtl"] .ecobambo-input-with-unit input,
.ecobambo-rtl .ecobambo-input-with-unit input {
    padding-right: 14px !important;
    padding-left: 38px !important;
    text-align: right;
    direction: ltr;
}

[dir="rtl"] .ecobambo-input-with-unit span,
.ecobambo-rtl .ecobambo-input-with-unit span {
    right: auto;
    left: 14px;
}

/* Text inputs & textareas in RTL */
[dir="rtl"] .ecobambo-field input[type="text"],
[dir="rtl"] .ecobambo-field textarea,
.ecobambo-rtl .ecobambo-field input[type="text"],
.ecobambo-rtl .ecobambo-field textarea {
    text-align: right;
    direction: rtl;
    line-height: 1.6;
}

/* Phone & Number fields in RTL */
[dir="rtl"] .ecobambo-field input[type="tel"],
.ecobambo-rtl .ecobambo-field input[type="tel"] {
    direction: ltr;
    text-align: right;
}

[dir="rtl"] .ecobambo-field input[type="number"],
.ecobambo-rtl .ecobambo-field input[type="number"] {
    direction: ltr;
    text-align: right;
}

/* Mode select radio labels */
[dir="rtl"] .ecobambo-radio-label,
.ecobambo-rtl .ecobambo-radio-label {
    flex-direction: row-reverse;
    gap: 8px;
}

/* Buttons in RTL: identical 48px height, 15px 700 font, centered, zero clipping */
[dir="rtl"] .ecobambo-btn,
.ecobambo-rtl .ecobambo-btn {
    line-height: 1.4;
    min-height: 48px;
    height: 48px;
    padding: 11px 22px;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    gap: 8px;
}

[dir="rtl"] .ecobambo-btn .ecobambo-btn-text,
.ecobambo-rtl .ecobambo-btn .ecobambo-btn-text {
    line-height: 1.4;
    overflow: visible;
}

[dir="rtl"] .ecobambo-submit-arrow,
.ecobambo-rtl .ecobambo-submit-arrow {
    transform: scaleX(-1);
    display: inline-block;
}

[dir="rtl"] .ecobambo-btn-order:hover .ecobambo-submit-arrow,
.ecobambo-rtl .ecobambo-btn-order:hover .ecobambo-submit-arrow {
    transform: scaleX(-1) translateX(3px);
}

[dir="rtl"] .ecobambo-preview-header,
.ecobambo-rtl .ecobambo-preview-header {
    flex-direction: row;
}

[dir="rtl"] .ecobambo-price-summary,
.ecobambo-rtl .ecobambo-price-summary,
[dir="rtl"] .ecobambo-price-row,
.ecobambo-rtl .ecobambo-price-row {
    flex-direction: row;
}

[dir="rtl"] .ecobambo-required,
.ecobambo-rtl .ecobambo-required {
    margin-left: 0;
    margin-right: 2px;
}

[dir="rtl"] .ecobambo-form-trust,
.ecobambo-rtl .ecobambo-form-trust {
    text-align: right;
    line-height: 1.7;
    display: flex;
    align-items: center;
    gap: 8px;
}

[dir="rtl"] .ecobambo-summary-grid,
.ecobambo-rtl .ecobambo-summary-grid {
    text-align: right;
}

/* ==========================================================================
   SERVICES PAGE & SITE VISIT ARCHITECTURE (Black/White/Gold System)
   ========================================================================== */
.ecobambo-site-visit-wrapper {
    background: #000000;
    color: #FFFFFF;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #222222;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    max-width: 1040px;
    margin: 30px auto;
    font-family: var(--ecobambo-font-body, 'Roboto', sans-serif);
    box-sizing: border-box;
}

.ecobambo-site-visit-wrapper * {
    box-sizing: border-box;
}

/* 9 Project Types Grid */
.ecobambo-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.ecobambo-project-card {
    background: #111111;
    border: 1px solid #262626;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: block;
}

.ecobambo-project-card:hover {
    border-color: #D4AF37;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
    background: #141414;
}

.ecobambo-project-card.active {
    border-color: #D4AF37;
    background: #181818;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

.ecobambo-project-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ecobambo-project-card-inner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ecobambo-project-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    background: #222222;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #333333;
}

.ecobambo-project-card.active .ecobambo-project-icon {
    border-color: #D4AF37;
    background: #2a2210;
}

.ecobambo-project-name {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    letter-spacing: 0.5px;
}

.ecobambo-project-name-ur {
    display: block;
    font-size: 13px;
    color: #D4AF37;
    margin-bottom: 6px;
    font-family: var(--ecobambo-font-urdu, 'Noto Nastaliq Urdu', serif);
}

.ecobambo-project-desc {
    margin: 0;
    font-size: 12px;
    color: #A0A0A0;
    line-height: 1.45;
}

/* Geolocation Block */
.ecobambo-geo-box {
    background: #111111;
    border: 1px dashed #333333;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 10px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s;
}

.ecobambo-geo-box:hover {
    border-color: #555555;
}

.ecobambo-geo-action-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ecobambo-btn-geo {
    background: #1C1C1C;
    color: #D4AF37;
    border: 1px solid #D4AF37;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.ecobambo-btn-geo:hover {
    background: #D4AF37;
    color: #000000;
}

.ecobambo-geo-tip {
    font-size: 12px;
    color: #888888;
}

.ecobambo-geo-badge {
    font-size: 12px;
    border-radius: 6px;
    padding: 10px 14px;
    line-height: 1.4;
}

.ecobambo-geo-badge-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid #10B981;
    color: #A7F3D0;
}

.ecobambo-geo-map-link {
    color: #34D399;
    text-decoration: underline;
    font-weight: 600;
}

.ecobambo-geo-badge-fallback {
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid #EAB308;
    color: #FEF08A;
}

.ecobambo-geo-badge-loading {
    background: #222222;
    border: 1px solid #444444;
    color: #E0E0E0;
}

/* Fee Summary Card */
.ecobambo-fee-card {
    background: linear-gradient(135deg, #111111 0%, #161616 100%);
    border: 1px solid #D4AF37;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.15);
}

.ecobambo-fee-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid #262626;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.ecobambo-fee-kicker {
    font-size: 11px;
    font-weight: 700;
    color: #D4AF37;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ecobambo-fee-title {
    margin: 4px 0 0;
    font-size: 18px;
    color: #FFFFFF;
    font-family: var(--font-heading, 'Oswald', sans-serif);
}

.ecobambo-fee-amount-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ecobambo-fee-currency {
    font-size: 16px;
    font-weight: 700;
    color: #D4AF37;
}

.ecobambo-fee-val {
    font-size: 36px;
    font-weight: 800;
    color: #FFFFFF;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    letter-spacing: 0.5px;
}

.ecobambo-fee-inclusions {
    font-size: 13px;
}

.ecobambo-fee-inc-title {
    margin: 0 0 10px;
    font-weight: 700;
    color: #E5A93C;
}

.ecobambo-fee-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #C0C0C0;
}

.ecobambo-fee-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.ecobambo-fee-list li span:first-child {
    color: #10B981;
    font-weight: 800;
}

/* Mandatory Policy Box */
.ecobambo-policy-box {
    background: #111111;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    padding: 18px;
    transition: all 0.25s ease;
}

.ecobambo-policy-box:hover {
    border-color: #444444;
}

.ecobambo-policy-box.ecobambo-policy-error {
    border-color: #EF4444 !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.35) !important;
}

.ecobambo-policy-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #DDDDDD;
}

.ecobambo-policy-ur {
    color: #D4AF37;
    font-family: var(--ecobambo-font-urdu, 'Noto Nastaliq Urdu', serif);
    line-height: 1.85;
    font-size: 14px;
}

/* Success Card */
.ecobambo-success-card {
    background: #0A0A0A;
    border: 1px solid #D4AF37;
    border-radius: 12px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
    margin: 20px 0;
}

.ecobambo-success-icon {
    font-size: 42px;
    color: #10B981;
    margin-bottom: 12px;
}

.ecobambo-success-title {
    margin: 0 0 8px;
    font-size: 22px;
    color: #FFFFFF;
    font-family: var(--font-heading, 'Oswald', sans-serif);
}

.ecobambo-gold-badge {
    color: #000000;
    background: #D4AF37;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.ecobambo-success-fee-line {
    font-size: 16px;
    color: #DDDDDD;
    margin: 12px 0 20px;
}

.ecobambo-payment-redirect-box {
    background: #141414;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 18px;
    margin: 15px auto;
    max-width: 500px;
}

.ecobambo-redirect-notice {
    font-size: 13px;
    color: #A7F3D0;
    margin: 0 0 10px;
}

/* Site Visit RTL Specifics */
[dir="rtl"] .ecobambo-site-visit-wrapper,
.ecobambo-rtl .ecobambo-site-visit-wrapper {
    text-align: right;
}

[dir="rtl"] .ecobambo-project-card-inner,
.ecobambo-rtl .ecobambo-project-card-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .ecobambo-geo-action-wrap,
.ecobambo-rtl .ecobambo-geo-action-wrap {
    flex-direction: row-reverse;
}

[dir="rtl"] .ecobambo-fee-card-header,
.ecobambo-rtl .ecobambo-fee-card-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .ecobambo-fee-amount-wrap,
.ecobambo-rtl .ecobambo-fee-amount-wrap {
    flex-direction: row-reverse;
}

[dir="rtl"] .ecobambo-fee-list li,
.ecobambo-rtl .ecobambo-fee-list li {
    flex-direction: row-reverse;
}

[dir="rtl"] .ecobambo-policy-label,
.ecobambo-rtl .ecobambo-policy-label {
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ecobambo-site-visit-wrapper {
        padding: 20px 14px;
        margin: 15px auto;
    }

    .ecobambo-project-grid {
        grid-template-columns: 1fr;
    }

    .ecobambo-fee-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ecobambo-fee-val {
        font-size: 28px;
    }
}

