/* =============================================
   DISTRIBUTOR PAGE - CSS
   SP Petrochemicals
   ============================================= */

/* ---- Hero Section ---- */
.distributor-hero {
    position: relative;
    background: linear-gradient(135deg, #1a0a0a 0%, #2d0e0e 50%, #1a1a2e 100%);
    padding: 120px 0 100px;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 58, 46, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(255, 122, 26, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 58, 46, 0.15);
    color: #FF7A1A;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 122, 26, 0.3);
}

.hero-title {
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, #FF3A2E 0%, #FF7A1A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-number {
    display: block;
    color: #FF7A1A;
    font-size: 32px;
    font-weight: 800;
}

.hero-stat-plus {
    color: #FF7A1A;
    font-size: 24px;
    font-weight: 700;
}

.hero-stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-top: 4px;
}

.hero-image-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    color: #fff;
}

.hero-card-icon {
    font-size: 60px;
    color: #FF7A1A;
    margin-bottom: 20px;
    display: block;
}

.hero-image-card h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 15px;
}

.hero-image-card p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
}

.sm-btn {
    padding: 10px 25px !important;
    font-size: 14px !important;
}

/* ---- Why Become Our Distributor ---- */
.why-distributor-section {
    background: #f8f9fa;
}

.sub-title {
    display: inline-block;
    color: var(--sp-red, #FF3A2E);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.sec-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.sec-desc {
    color: #666;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.7;
}

.benefit-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 58, 46, 0.12);
    border-color: rgba(255, 58, 46, 0.2);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 58, 46, 0.1) 0%, rgba(255, 122, 26, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--sp-red, #FF3A2E);
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background: linear-gradient(135deg, #FF3A2E 0%, #FF7A1A 100%);
    color: #fff;
    transform: scale(1.1);
}

.benefit-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.benefit-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ---- Distributor Models Section ---- */
.distributor-models-section {
    background: #fff;
}

.model-block {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    border: 1px solid #e8e8e8;
}

.model-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d5e 100%);
    padding: 30px 35px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.model-header.district {
    background: linear-gradient(135deg, #FF3A2E 0%, #FF7A1A 100%);
}

.model-badge {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.model-header-content {
    flex: 1;
}

.model-header-content h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px;
}

.model-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.model-investment {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: 12px;
    flex-shrink: 0;
}

.model-investment .inv-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.model-investment .inv-amount {
    display: block;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
}

.model-investment .inv-note {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.model-body {
    padding: 30px;
}

.model-card {
    background: #f9fafb;
    border-radius: 14px;
    padding: 25px;
    height: 100%;
    border: 1px solid #eee;
}

.model-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.model-card h5 i {
    color: var(--sp-red, #FF3A2E);
    margin-right: 8px;
}

.model-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.model-card ul li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.model-card ul li:last-child {
    border-bottom: none;
}

.model-card ul li i {
    color: #4CAF50;
    margin-right: 8px;
    font-size: 12px;
}

/* Coverage Range */
.coverage-range {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.coverage-item {
    text-align: center;
}

.coverage-label {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coverage-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

.coverage-divider {
    font-size: 14px;
    color: #999;
    font-weight: 600;
}

/* Capacity Calculation */
.capacity-calc {
    margin-bottom: 20px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 8px;
}

.calc-row.highlight {
    background: linear-gradient(135deg, rgba(255, 58, 46, 0.08) 0%, rgba(255, 122, 26, 0.08) 100%);
    border: 1px solid rgba(255, 58, 46, 0.15);
}

.calc-formula {
    font-size: 13px;
    color: #666;
}

.calc-result {
    font-size: 16px;
    font-weight: 700;
    color: var(--sp-red, #FF3A2E);
}

.calc-divider {
    text-align: center;
    color: #ccc;
    padding: 5px 0;
}

/* Capacity Total Badge */
.capacity-total {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(255, 58, 46, 0.08) 0%, rgba(255, 122, 26, 0.08) 100%);
    border: 1px solid rgba(255, 58, 46, 0.15);
    border-radius: 12px;
}

.capacity-total-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF3A2E 0%, #FF7A1A 100%);
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
}

.capacity-total-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.capacity-total-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 600;
}

.capacity-total-value {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
}

.capacity-total-value small {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

/* Profit Structure */
.profit-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border-radius: 10px;
}

.profit-label {
    font-size: 14px;
    color: #666;
}

.profit-value {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}

.profit-value.big {
    font-size: 22px;
    color: var(--sp-red, #FF3A2E);
}

.highlight-profit {
    background: linear-gradient(135deg, rgba(255, 58, 46, 0.08) 0%, rgba(255, 122, 26, 0.08) 100%) !important;
    border: 1px solid rgba(255, 58, 46, 0.15);
}

.profit-note {
    margin-top: 15px;
    color: #999;
    text-align: center;
}

/* ---- Model CTA ---- */
.model-cta {
    padding: 30px 20px;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #FF3A2E 0%, #FF7A1A 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(255, 58, 46, 0.3);
    transition: all 0.3s ease;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(255, 58, 46, 0.4);
    color: #fff;
}

.btn-cta-primary i {
    font-size: 20px;
}

.cta-note {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.cta-note i {
    color: var(--sp-orange, #FF7A1A);
    margin-right: 5px;
}

/* ---- Comparison Table ---- */
.comparison-section {
    background: #f8f9fa;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px;
}

.comparison-table thead tr {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d5e 100%);
}

.comparison-table th {
    color: #fff;
    padding: 20px 25px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table .tahsil-col {
    background: rgba(255, 255, 255, 0.1);
}

.comparison-table .district-col {
    background: rgba(255, 122, 26, 0.3);
}

.comparison-table td {
    padding: 18px 25px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    font-size: 15px;
    color: #444;
}

.comparison-table td:first-child {
    text-align: left;
    color: #1a1a2e;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.highlight-cell {
    color: var(--sp-red, #FF3A2E) !important;
    font-weight: 700;
    font-size: 18px !important;
}

/* ---- Licensing Section ---- */
.licensing-section {
    background: #fff;
}

.licensing-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
}

.licensing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.license-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.license-item:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 58, 46, 0.2);
    transform: translateY(-3px);
}

.license-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 58, 46, 0.1) 0%, rgba(255, 122, 26, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sp-red, #FF3A2E);
    font-size: 18px;
    flex-shrink: 0;
}

.license-item span {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

/* ---- Process Section ---- */
.process-section {
    background: #f8f9fa;
}

.process-timeline {
    position: relative;
}

.process-step {
    background: #fff;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border: 1px solid #f0f0f0;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 58, 46, 0.12);
    border-color: rgba(255, 58, 46, 0.2);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF3A2E 0%, #FF7A1A 100%);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(255, 58, 46, 0.3);
}

.step-icon {
    font-size: 36px;
    color: var(--sp-red, #FF3A2E);
    margin: 15px 0 15px;
}

.process-step h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.process-step p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* ---- Support Section ---- */
.support-section {
    background: #fff;
}

.support-card {
    background: #f9fafb;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

.support-card:hover {
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 58, 46, 0.2);
}

.support-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 58, 46, 0.1) 0%, rgba(255, 122, 26, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: var(--sp-red, #FF3A2E);
}

.support-card:hover .support-icon {
    background: linear-gradient(135deg, #FF3A2E 0%, #FF7A1A 100%);
    color: #fff;
}

.support-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.support-card p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* ---- Application Form Section ---- */
.apply-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d0e0e 100%);
    position: relative;
    overflow: hidden;
}

.apply-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 80%, rgba(255, 58, 46, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.apply-content {
    position: relative;
    z-index: 1;
}

.apply-content .sec-title {
    color: #fff;
}

.apply-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    line-height: 1.7;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.apply-contact-info {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.apply-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}

.apply-info-item i {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 58, 46, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #FF7A1A;
    flex-shrink: 0;
}

.apply-info-item span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apply-info-item a {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
}

.apply-info-item a:hover {
    color: #FF7A1A;
}

/* Form Wrapper */
.apply-form-wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.apply-form-wrapper h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 25px;
}

.apply-form-wrapper h3 i {
    color: var(--sp-red, #FF3A2E);
}

.distributor-form .form-group {
    margin-bottom: 0;
}

.distributor-form label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
    display: block;
}

.distributor-form label .required {
    color: var(--sp-red, #FF3A2E);
}

.distributor-form .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.distributor-form .form-control:focus {
    border-color: var(--sp-red, #FF3A2E);
    box-shadow: 0 0 0 3px rgba(255, 58, 46, 0.1);
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-img {
    border-radius: 8px;
    cursor: pointer;
    height: 40px;
}

.captcha-refresh {
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.captcha-refresh:hover {
    color: var(--sp-red, #FF3A2E);
    border-color: var(--sp-red, #FF3A2E);
}

/* Form Response */
.form-response {
    margin-top: 15px;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
}

.form-response.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-response.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ---- Responsive ---- */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 40px;
    }
}

@media (max-width: 991px) {
    .distributor-hero {
        padding: 100px 0 80px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        gap: 25px;
    }

    .hero-stat-number {
        font-size: 26px;
    }

    .model-header {
        flex-direction: column;
        text-align: center;
    }

    .model-investment {
        width: auto;
    }

    .sec-title {
        font-size: 28px;
    }

    .apply-form-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 767px) {
    .distributor-hero {
        padding: 90px 0 60px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .hero-stat-item {
        text-align: left;
    }

    .comparison-table {
        font-size: 13px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 15px;
    }

    .licensing-grid {
        grid-template-columns: 1fr;
    }

    .coverage-range {
        flex-direction: column;
    }

    .btn-cta-primary {
        font-size: 16px;
        padding: 14px 30px;
    }

    .model-cta {
        padding: 20px 15px;
    }
}
