/**
 * iRESS BMS - Public Platform Styling
 * Theme: Official iRESS Brand
 * Primary: #09A94F (Vibrant Clean Energy Green)
 * Secondary: #F69D2E (Warm Solar Amber/Orange)
 */

:root {
    --iress-primary: #09A94F;
    --iress-primary-hover: #078c41;
    --iress-primary-light: rgba(9, 169, 79, 0.12);
    --iress-secondary: #F69D2E;
    --iress-secondary-hover: #e08b22;
    --iress-secondary-light: rgba(246, 157, 46, 0.15);
    
    --iress-dark-900: #0a0f1d;
    --iress-dark-800: #0f172a;
    --iress-dark-700: #1e293b;
    --iress-dark-600: #334155;
    --iress-slate-50: #f8fafc;
    --iress-slate-100: #f1f5f9;
    --iress-slate-200: #e2e8f0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Navbar */
.navbar-iress {
    background: #ffffff !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.navbar-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-brand-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.brand-badge {
    background: linear-gradient(135deg, var(--iress-primary) 0%, var(--iress-secondary) 100%);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.nav-link {
    color: #334155 !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 8px 16px !important;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--iress-primary) !important;
}

/* Buttons */
.btn-iress-primary {
    background: linear-gradient(135deg, var(--iress-primary) 0%, var(--iress-primary-hover) 100%);
    color: #ffffff !important;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    box-shadow: 0 4px 14px rgba(9, 169, 79, 0.35);
    transition: all 0.25s ease;
}

.btn-iress-primary:hover {
    background: linear-gradient(135deg, var(--iress-primary-hover) 0%, #066d33 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 169, 79, 0.45);
}

.btn-iress-secondary {
    background: linear-gradient(135deg, var(--iress-secondary) 0%, var(--iress-secondary-hover) 100%);
    color: #ffffff !important;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    box-shadow: 0 4px 14px rgba(246, 157, 46, 0.35);
    transition: all 0.25s ease;
}

.btn-iress-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 157, 46, 0.45);
}

.btn-iress-outline {
    border: 2px solid var(--iress-primary);
    color: var(--iress-primary) !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 9px 20px;
    background: transparent;
    transition: all 0.25s ease;
}

.btn-iress-outline:hover {
    background: var(--iress-primary-light);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 80% 20%, rgba(9, 169, 79, 0.22) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(246, 157, 46, 0.16) 0%, transparent 45%),
                #0a0f1d;
    color: #ffffff;
    padding: 120px 0 80px 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(9, 169, 79, 0.15);
    border: 1px solid rgba(9, 169, 79, 0.4);
    color: #4ade80;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #4ade80 0%, var(--iress-primary) 40%, var(--iress-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.2rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 600px;
}

/* Feature & Benefit Cards */
.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    border-color: var(--iress-primary);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--iress-primary-light);
    color: var(--iress-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 22px;
}

/* Product Model Cards */
.product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.12);
    border-color: var(--iress-primary);
}

.product-card-header {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 30px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.product-badge-moq {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--iress-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.product-image-container {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container img {
    max-height: 200px;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.15));
}

.product-card-body {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.spec-chip {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    margin-bottom: 8px;
}

.spec-chip i {
    color: var(--iress-primary);
}

/* Workflow Step Cards */
.workflow-step {
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--iress-primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    box-shadow: 0 4px 12px rgba(9, 169, 79, 0.3);
}

/* EOI Form Multi-Step Wizard */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.wizard-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 25%;
}

.step-indicator {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    color: #64748b;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    transition: all 0.3s;
}

.wizard-step.active .step-indicator {
    border-color: var(--iress-primary);
    background: var(--iress-primary);
    color: #ffffff;
    box-shadow: 0 0 0 5px rgba(9, 169, 79, 0.2);
}

.wizard-step.completed .step-indicator {
    border-color: var(--iress-secondary);
    background: var(--iress-secondary);
    color: #ffffff;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.wizard-step.active .step-label {
    color: var(--iress-primary);
    font-weight: 700;
}

/* ==========================================================================
   EOI Mobile & Responsive Enhancements
   ========================================================================== */

/* Disable number spinner buttons so digits have maximum room */
.input-qty::-webkit-inner-spin-button,
.input-qty::-webkit-outer-spin-button,
.input-target-price::-webkit-inner-spin-button,
.input-target-price::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.input-qty,
.input-target-price {
    -moz-appearance: textfield;
}

/* Ensure spacious digit display for quantity and pricing */
.eoi-items-table .cell-qty .input-qty {
    min-width: 85px !important;
    text-align: center;
    font-size: 15px !important;
    font-weight: 700;
    padding: 0.375rem 0.4rem !important;
    letter-spacing: 0.5px;
}

.eoi-items-table .cell-price .input-target-price {
    min-width: 65px !important;
    text-align: center;
    font-size: 14px !important;
    padding: 0.375rem 0.35rem !important;
}

@media (max-width: 767.98px) {
    /* Touch Sizing for Contact & Specification Steps */
    .eoi-card #step1 .form-control,
    .eoi-card #step1 .form-select,
    .eoi-card #step3 .form-control,
    .eoi-card #step3 .form-select {
        font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
        min-height: 44px;
        border-radius: 8px;
    }

    .eoi-card textarea.form-control {
        min-height: 80px;
    }

    .eoi-card .table-responsive {
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    /* Compact Stepper for Mobile Phones */
    .wizard-progress {
        margin-bottom: 24px;
    }

    .wizard-progress::before {
        top: 17px;
        left: 20px;
        right: 20px;
        height: 2px;
    }

    .step-indicator {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        border-width: 2px;
        margin-bottom: 4px;
    }

    .wizard-step.active .step-indicator {
        box-shadow: 0 0 0 3px rgba(9, 169, 79, 0.2);
    }

    .step-label {
        font-size: 0.7rem;
        line-height: 1.15;
        padding: 0 2px;
    }

    /* Full-width Thumb Navigation Buttons */
    .wizard-footer-nav {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .wizard-footer-nav .btn {
        width: 100% !important;
        min-height: 48px;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wizard-footer-nav .ms-sm-auto {
        width: 100%;
    }
}

/* Footer */
.footer-iress {
    background: #FAF9F7;
    color: #475569;
    padding: 70px 0 30px 0;
    border-top: 1px solid #e7e5e0;
}
