/* ==========================================================================
   CSS TỐI ƯU CHO TRANG HỆ THỐNG TƯỚI BAN CÔNG & SÂN THƯỢNG (VIFASO)
   ========================================================================== */

/* Main Layout Wrapper */
.main-wrapper {
    background-color: #f8fafc;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.section-container {
    max-width: 1150px;
    margin: 0 auto;
}

/* 1. Hero Banner */
.hero-banner {
    position: relative;
    background: url('/images/banner/banner-tuoi-bancong.png') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 90px 5%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.85), rgba(11, 99, 61, 0.70));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand-badge {
    display: inline-block;
    background: rgba(167, 243, 208, 0.15);
    border: 1px solid rgba(167, 243, 208, 0.4);
    color: #6ee7b7;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    margin: 0;
    line-height: 1.25;
    color: #ffffff;
}

.text-accent {
    color: #4ade80;
}

.hero-desc {
    font-size: 16px;
    color: #e6fffa;
    line-height: 1.6;
    max-width: 820px;
    margin: 0;
}

.hero-slogan {
    font-size: 14px;
    color: #a7f3d0;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0b633d;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #0b633d;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #08492d;
    border-color: #08492d;
}

.btn-outline-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.btn-outline-glass:hover {
    background-color: #ffffff;
    color: #0b633d !important;
}

/* Common Section Headers */
.section-title {
    color: #065f46;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 45px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-align: center;
}

/* 2. Problems Grid Section */
.problems-section {
    padding: 70px 5%;
    background-color: #f8fafc;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    text-align: center;
}

.problem-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.problem-icon-wrapper {
    width: 52px;
    height: 52px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 20px auto;
}

.problem-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.problem-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* 3. Plant Care Methods Section */
.plant-types-section {
    padding: 10px 5% 60px 5%;
    background-color: #f8fafc;
}

.plant-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 25px;
    text-align: left;
}

.plant-type-card {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.plant-icon-box {
    width: 50px;
    height: 50px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.plant-type-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.plant-type-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 12px;
}

.device-tag {
    font-size: 13px;
    color: #059669;
    font-weight: 700;
    margin: 0;
}

/* Banner Diagram Box */
.diagram-section {
    padding: 20px 5% 60px 5%;
    background-color: #f8fafc;
}

.diagram-box {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.diagram-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 4. Smart Features Section */
.features-section {
    padding: 40px 5% 70px 5%;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item-title {
    color: #0f172a;
    font-size: 16px;
}

.feature-item p {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
    margin: 0;
}

.rain-sensor-box {
    background: #2563eb;
    color: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 5px;
}

.rain-sensor-box p {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
}

.rain-sensor-box span {
    font-weight: 400;
    opacity: 0.95;
}

.feature-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    display: block;
    max-height: 480px;
}

/* 5. Comparison Table Section */
.comparison-section {
    padding: 60px 5%;
    background-color: #f8fafc;
}

.comparison-box {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 750px;
    font-size: 14px;
    color: #334155;
}

.comparison-table th {
    padding: 16px 20px;
    font-weight: 800;
    background: #14532d;
    color: #fff;
}

.comparison-table th.col-vifaso {
    background: #166534;
}

.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.comparison-table td.col-criterion {
    font-weight: 700;
    color: #0f172a;
}

.comparison-table td.col-manual {
    color: #64748b;
}

.comparison-table td.col-auto {
    font-weight: 700;
    color: #15803d;
    background: #f0fdf4;
}

/* 6. Installation Process Section */
.process-section {
    padding: 60px 5%;
    background-color: #fff;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    text-align: left;
    margin-bottom: 50px;
}

.process-card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.process-num {
    width: 36px;
    height: 36px;
    background: #059669;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 15px;
}

.process-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.process-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.process-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    display: block;
    max-height: 480px;
}

/* 7. FAQ Section */
.faq-section {
    padding: 60px 5%;
    background-color: #f8fafc;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.faq-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.faq-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* 8. Mistakes Section */
.mistakes-section {
    padding: 60px 5%;
    background-color: #fff;
}

.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    text-align: center;
    margin-bottom: 40px;
}

.mistake-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.mistake-icon-box {
    width: 52px;
    height: 52px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 20px auto;
}

.mistake-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.mistake-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.conclusion-msg {
    font-size: 16px;
    color: #334155;
    margin: 0;
    line-height: 1.6;
    text-align: center;
}

.conclusion-msg strong {
    color: #065f46;
    font-weight: 800;
}

/* 9. Solution Detail & Sidebar Form */
.solution-details-section {
    padding: 20px 5% 70px 5%;
    background-color: #f8fafc;
}

.solution-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.solution-main-box {
    background: #fff;
    padding: 35px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.solution-main-box h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
}

.solution-desc {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 25px;
}

.solution-subhead {
    font-size: 18px;
    font-weight: 700;
    color: #065f46;
    margin: 25px 0 15px 0;
}

.advantages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.advantage-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.advantage-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.advantage-icon.green {
    background: #ecfdf5;
    color: #059669;
}

.advantage-icon.blue {
    background: #e0f2fe;
    color: #0284c7;
}

.advantage-icon.amber {
    background: #fef3c7;
    color: #d97706;
}

.advantage-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 5px 0;
}

.advantage-item p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Sidebar Contact Form */
.sidebar-form-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 30px;
    position: sticky;
    top: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.sidebar-form-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.sidebar-form-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 11px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #059669;
}

textarea.form-control {
    resize: vertical;
}

.btn-submit {
    background: #059669;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background-color: #047857;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .features-grid,
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .plant-types-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-form-card {
        position: static;
    }
}

@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-outline-glass {
        width: 100%;
        justify-content: center;
    }
}