/* ========================================
   SAMSUN ENERGY | COMPLETE MASTER STYLESHEET
   Merged from: forms.css + homepage HTML + carousel
   ======================================== */

/* ---------- VARIABLES ---------- */
:root {
    --samsun-primary: #FBB306;
    --samsun-secondary: #0A65BD;
    --samsun-accent: #004282;
    --samsun-dark: #002F5D;
    --samsun-green: #0a6e3f;
    --samsun-gold: #ffb347;
    --samsun-light-bg: #f8f9fa;
    --samsun-white: #ffffff;
    --samsun-gray: #f9fef7;
    --samsun-border: #e0f0e0;
    --samsun-heading: rgb(0, 66, 130);
    --samsun-text: rgb(0, 47, 93);
}

/* ---------- BASE & RESET ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--samsun-light-bg);
    font-family: 'Inter', system-ui, 'Segoe UI', sans-serif;
    color: var(--samsun-text);
    line-height: 1.5;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--samsun-heading);
    letter-spacing: -0.02em;
}

/* ---------- CARD STYLES (calculators) ---------- */
.roi-card, .calculator-card, .checker-card, .main-card {
    max-width: 1300px;
    margin: 2rem auto;
    border-radius: 32px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.15);
    background: white;
    overflow: hidden;
}

.card-header, .step-header {
    background: linear-gradient(135deg, var(--samsun-secondary) 0%, var(--samsun-accent) 100%);
    color: white;
    padding: 1.2rem 1.8rem;
}

/* Result Boxes */
.result-box, .rebate-badge, .eligibility-badge, .result-card, .emi-card {
    background: var(--samsun-gray);
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--samsun-primary);
}

.eligible {
    border-left-color: var(--samsun-green);
    background: #f0faf0;
}

.not-eligible {
    border-left-color: #dc3545;
    background: #fff5f5;
}

/* Typography & Numbers */
.big-number, .result-number, .savings-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--samsun-green);
}
.result-number { font-size: 1.8rem; }
.savings-number { font-size: 2.2rem; }

/* Buttons */
.btn-samsun {
    background: var(--samsun-primary);
    color: var(--samsun-dark);
    border-radius: 40px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border: none;
    transition: 0.2s;
}
.btn-samsun:hover {
    background: var(--samsun-secondary);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-samsun {
    border: 2px solid var(--samsun-primary);
    color: var(--samsun-dark);
    background: white;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-outline-samsun:hover {
    background: var(--samsun-primary);
    color: white;
    border-color: var(--samsun-primary);
}

.btn-cta {
    background-color: var(--samsun-primary);
    color: var(--samsun-text);
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-cta:hover {
    background-color: #e5a300;
    transform: translateY(-2px);
    color: var(--samsun-text);
}

/* ---------- STEP PROGRESS (calculators) ---------- */
.step-progress {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.step-badge {
    background: #e9ecef;
    color: #2c3e2f;
    border-radius: 40px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.step-badge.active {
    background: var(--samsun-primary);
    color: var(--samsun-dark);
    box-shadow: 0 4px 8px rgba(251,179,6,0.3);
}
.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.step-content.active-step { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px);}
    to { opacity: 1; transform: translateY(0);}
}

/* ---------- FORM CONTROLS ---------- */
input[type=range] { width: 100%; accent-color: var(--samsun-primary); }
.form-control:focus, .form-select:focus {
    border-color: var(--samsun-primary);
    box-shadow: 0 0 0 0.2rem rgba(251,179,6,0.25);
}
.slider-value {
    font-weight: 700;
    background: #eef2ee;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    display: inline-block;
}
.suitability-badge {
    background: #ecfdf3;
    border-radius: 30px;
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.solution-option {
    border: 1px solid #dee2e6;
    border-radius: 28px;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}
.solution-option.selected {
    background: rgba(251,179,6,0.1);
    border-color: var(--samsun-primary);
    box-shadow: 0 0 0 2px rgba(251,179,6,0.2);
}
.info-tooltip {
    border-bottom: 1px dashed #aaa;
    cursor: help;
}

/* ---------- HEADER & TOP BAR ---------- */
.header-top {
    background-color: var(--samsun-primary);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}
.header-top a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.header-top a:hover { opacity: 0.8; }
.header-top .contact-info li {
    display: inline-flex;
    align-items: center;
    margin-right: 1.5rem;
}
.header-top .contact-info li i {
    margin-right: 8px;
    font-size: 16px;
}

/* Main Navigation */
.navbar {
    padding: 0.75rem 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar-brand img {
    max-height: 60px;
    width: auto;
}
.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--samsun-text);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--samsun-primary);
}
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}
.dropdown-item {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    color: var(--samsun-text);
    transition: all 0.2s ease;
}
.dropdown-item:hover {
    background-color: rgba(251,179,6,0.1);
    color: var(--samsun-primary);
    padding-left: 1.8rem;
}

/* ---------- HERO SECTION (homepage) ---------- */
.hero-section {
    background: linear-gradient(135deg, var(--samsun-secondary) 0%, var(--samsun-heading) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}
.hero-section h1 {
    color: white;
    font-weight: 800;
    margin-bottom: 1rem;
}
.hero-section p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    background: rgba(251,179,6,0.15);
    color: var(--samsun-secondary);
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(2px);
}

/* ---------- STAT CARDS ---------- */
.stat-card {
    background: var(--samsun-white);
    border-radius: 28px;
    padding: 1.2rem;
    text-align: center;
    transition: 0.2s;
    border: 1px solid rgba(0,66,130,0.08);
    height: 100%;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -8px rgba(0,0,0,0.1);
}
.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(145deg, var(--samsun-secondary) 0%, var(--samsun-accent) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.section-title {
    position: relative;
    display: inline-block;
}
.section-title:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--samsun-primary);
    border-radius: 4px;
}

/* ---------- TOOL CARDS (homepage grid) ---------- */
.tool-card {
    border: none;
    border-radius: 32px;
    background: var(--samsun-white);
    transition: all 0.3s ease;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 40px -16px rgba(0,0,0,0.2);
}
.card-icon-wrapper {
    background: linear-gradient(135deg, rgba(10,101,189,0.08) 0%, rgba(0,66,130,0.05) 100%);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    margin-bottom: 1.2rem;
    transition: all 0.2s;
}
.tool-card:hover .card-icon-wrapper {
    background: var(--samsun-primary);
}
.tool-card:hover .card-icon-wrapper i {
    color: var(--samsun-dark) !important;
}

/* Legacy card-tool (backup) */
.card-tool {
    border: none;
    border-radius: 24px;
    box-shadow: 0 10px 25px -8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background: white;
}
.card-tool:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
}
.card-tool .card-body { padding: 1.8rem; }
.card-icon {
    font-size: 3rem;
    color: var(--samsun-primary);
    margin-bottom: 1rem;
}
.card-tool .card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.card-tool .card-text {
    color: #5a6e7c;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* ---------- CAROUSEL (solar journey) ---------- */
.solar-carousel-block {
    max-width: 1440px;
    width: 100%;
    margin: 2rem auto;
    background: transparent;
}
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
}
.carousel-btn {
    background: white;
    border: 1px solid rgba(10,101,189,0.2);
    width: 48px;
    height: 48px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    color: var(--samsun-secondary);
    font-size: 1.6rem;
}
.carousel-btn:hover {
    background: var(--samsun-primary);
    border-color: var(--samsun-primary);
    color: white;
    transform: scale(1.02);
}
.carousel-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    background: #f0f2f5;
    border-color: #e2e8f0;
    color: #8ba0bc;
}
.carousel-viewport {
    overflow: hidden;
    flex: 1;
    border-radius: 1.8rem;
}
.carousel-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.4s cubic-bezier(0.2,0.9,0.4,1.1);
    will-change: transform;
}
.step-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.5rem 0.8rem;
    text-align: center;
    transition: all 0.25s ease;
    border: 1px solid rgba(10,101,189,0.12);
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    min-height: 260px;
}
.step-card:hover {
    transform: translateY(-6px);
    border-color: var(--samsun-primary);
    box-shadow: 0 18px 30px -10px rgba(10,101,189,0.2);
}
.icon-circle {
    width: 80px;
    height: 80px;
    background: #FEF2D6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem auto;
    transition: all 0.25s;
    border: 1px solid rgba(249,179,7,0.3);
}
.step-card:hover .icon-circle {
    background: var(--samsun-primary);
    border-color: var(--samsun-primary);
    transform: scale(1.02);
}
.icon-circle i {
    font-size: 2.5rem;
    color: var(--samsun-secondary);
    transition: all 0.2s;
}
.step-card:hover .icon-circle i {
    color: #ffffff;
}
/* carousel step badge (different from calculator step-badge – no conflict) */
.step-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--samsun-secondary);
    background: rgba(10,101,189,0.1);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    margin-bottom: 1rem;
    transition: 0.2s;
}
.step-card:hover .step-badge {
    background: rgba(249,179,7,0.2);
}
.step-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--samsun-secondary);
    margin-bottom: 0.3rem;
}
.step-desc {
    font-size: 0.72rem;
    font-weight: 500;
    color: #2c4c6e;
    opacity: 0.8;
    margin-top: 0.45rem;
}
.no-select { user-select: none; }

/* ---------- CTA SECTION & FOOTER ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--samsun-secondary) 0%, var(--samsun-heading) 100%);
    color: white;
    padding: 3rem 0;
    margin: 2rem 0 0;
    text-align: center;
}
.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}
.cta-section p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
.footer {
    background-color: var(--samsun-light-bg);
    padding: 1.25rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.85rem;
    text-align: center;
}
.footer a {
    color: var(--samsun-secondary);
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}
.content-block {
    padding: 3rem 0 4rem 0;
}
img {
    max-width: 100%;
    border-radius: 24px;
}

/* ---------- RESPONSIVE (unified) ---------- */
@media (max-width: 991px) {
    .navbar-nav { padding: 1rem 0; }
    .header-top .contact-info { text-align: center; justify-content: center; }
}
@media (max-width: 768px) {
    .header-top .row { flex-direction: column; text-align: center; }
    .hero-section h1 { font-size: 1.8rem; }
    .card-tool .card-body { padding: 1.2rem; }
    .tool-card { padding: 1rem !important; }
    .stat-card { padding: 0.8rem; }
    .carousel-btn { width: 40px; height: 40px; font-size: 1.3rem; }
    .icon-circle { width: 68px; height: 68px; }
    .icon-circle i { font-size: 2.2rem; }
    .step-title { font-size: 0.9rem; }
    .step-card { padding: 1.2rem 0.6rem; min-height: 240px; }
}
@media (max-width: 640px) {
    .savings-number, .big-number, .result-number { font-size: 1.6rem; }
}
@media (max-width: 576px) {
    .carousel-btn { width: 36px; height: 36px; font-size: 1.1rem; }
    .icon-circle { width: 60px; height: 60px; }
    .icon-circle i { font-size: 1.9rem; }
    .step-title { font-size: 0.85rem; }
    .step-card { min-height: 220px; }
}