/*=====================================================
DUCT SIZE CALCULATOR
HVACSenior.com
=====================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

.duct-page{

    background:#f4f8ff;

    padding:35px 0 60px;

}

.duct-container{

    width:95%;

    max-width:1200px;

    margin:auto;

}

/*=====================================================
Breadcrumb
=====================================================*/

.duct-breadcrumb{

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:20px;

    font-size:15px;

}

.duct-breadcrumb a{

    color:#2563eb;

    text-decoration:none;

    font-weight:500;

}

.duct-breadcrumb strong{

    color:#1e293b;

}

/*=====================================================
Hero
=====================================================*/

.duct-hero{

    background:#fff;

    border-radius:24px;

    overflow:hidden;

    display:flex;

    justify-content:space-between;

    align-items:center;

    border:1px solid #dbe7f8;

    box-shadow:0 15px 45px rgba(15,23,42,.08);

    margin-bottom:28px;

}

.hero-left{

    width:60%;

    display:flex;

    gap:30px;

    padding:20px;

}

.hero-icon{

    width:70px;

    height:70px;

    border-radius:50%;

    background:linear-gradient(135deg,#2563eb,#1d4ed8);

    display:flex;

    justify-content:center;

    align-items:center;

    flex-shrink:0;

}

.hero-icon i{

    font-size:46px;

    color:#fff;

}

.hero-content{

    flex:1;

}

.hero-content h1{

    font-size:40px;

    color:#0f172a;

    font-weight:800;

    margin-bottom:18px;

}

.hero-content p{

    font-size:10px;

    line-height:1.1;

    color:#64748b;

    max-width:600px;

}

/*=====================================================
Hero Features
=====================================================*/

.hero-features{

    display:flex;

    gap:40px;

    margin-top:35px;

}

.hero-feature{

    display:flex;

    gap:14px;

    align-items:flex-start;

}

.hero-feature i{

    width:46px;

    height:46px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:#eff6ff;

    color:#2563eb;

    font-size:20px;

}

.hero-feature strong{

    display:block;

    color:#0f172a;

    font-size:18px;

    margin-bottom:3px;

}

.hero-feature small{

    color:#64748b;

    font-size:14px;

}

/*=====================================================
Hero Image
=====================================================*/

.hero-right{

    width:40%;

    height:100%;

}

.hero-right img{

    width:100%;

    height:100%;

    display:block;

    object-fit:cover;

}
/*=====================================================
MAIN GRID
=====================================================*/

.duct-grid{

    display:grid;

    grid-template-columns:1fr 1.15fr;

    gap:24px;

    align-items:start;

}

/*=====================================================
CARDS
=====================================================*/

.card{

    background:#fff;

    border-radius:18px;

    border:1px solid #dce7f5;

    overflow:hidden;

    box-shadow:0 10px 30px rgba(15,23,42,.06);

}

.card-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 24px;

    color:#fff;

}

.blue-header{

    background:linear-gradient(90deg,#2563eb,#1d4ed8);

}

.green-header{

    background:linear-gradient(90deg,#16a34a,#15803d);

}

.header-title{

    display:flex;

    align-items:center;

    gap:12px;

    font-size:22px;

    font-weight:700;

    text-transform:uppercase;

}

.card-body{

    padding:24px;

}

/*=====================================================
FORM
=====================================================*/

.form-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:22px;

}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-weight:700;

    color:#0f172a;

}

.form-group small{

    display:block;

    margin-top:8px;

    color:#64748b;

    font-size:13px;

}

.form-group select{

    width:100%;

    height:48px;

    border:1px solid #dbe4ef;

    border-radius:10px;

    padding:0 14px;

}

.input-unit{

    display:flex;

    border:1px solid #dbe4ef;

    border-radius:10px;

    overflow:hidden;

}

.input-unit input{

    flex:1;

    border:none;

    padding:14px;

    outline:none;

}

.input-unit span{

    width:70px;

    display:flex;

    justify-content:center;

    align-items:center;

    background:#f8fafc;

    border-left:1px solid #dbe4ef;

}

/*=====================================================
ADVANCED
=====================================================*/

.advanced-box{

    margin-top:26px;

}

.advanced-box button{

    width:100%;

    height:52px;

    border:1px solid #dbe4ef;

    border-radius:10px;

    background:#fff;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 18px;

    cursor:pointer;

}

/*=====================================================
BUTTONS
=====================================================*/

.button-row{

    display:flex;

    gap:18px;

    margin-top:24px;

}

.calculate-duct{

    flex:1;

    height:54px;

    border:none;

    border-radius:10px;

    background:linear-gradient(90deg,#2563eb,#1d4ed8);

    color:#fff;

    font-weight:700;

    cursor:pointer;

}

.reset-btn{

    width:170px;

    border:1px solid #dbe4ef;

    background:#fff;

    border-radius:10px;

    font-weight:700;

    cursor:pointer;

}

.print-results{

    background:rgba(255,255,255,.18);

    border:1px solid rgba(255,255,255,.35);

    color:#fff;

    border-radius:8px;

    padding:10px 18px;

    cursor:pointer;

}
/*=====================================================
RESULT SUMMARY
=====================================================*/

.result-summary{

    display:grid;

    grid-template-columns:2fr 1fr 1fr;

    gap:18px;

    margin-bottom:28px;

}

.summary-main{

    border:1px solid #d7f0df;

    background:#f5fff8;

    border-radius:14px;

    padding:24px;

    text-align:center;

}

.summary-title{

    color:#15803d;

    font-weight:700;

    margin-bottom:12px;

}

.summary-size{

    font-size:54px;

    color:#15803d;

    font-weight:800;

    margin-bottom:10px;

}

.summary-box{

    border:1px solid #dbe4ef;

    border-radius:14px;

    padding:24px;

    text-align:center;

}

.summary-label{

    color:#64748b;

    margin-bottom:10px;

}

.summary-value{

    font-size:46px;

    font-weight:800;

    color:#15803d;

}

/*=====================================================
RESULT GRID
=====================================================*/

.results-grid{

    display:grid;

    grid-template-columns:1.1fr .9fr;

    gap:28px;

}

.section-title{

    font-size:22px;

    margin-bottom:16px;

    color:#0f172a;

}

.results-table{

    width:100%;

    border-collapse:collapse;

}

.results-table td{

    border:1px solid #e5e7eb;

    padding:12px;

}

.results-table td:last-child{

    font-weight:700;

}

.duct-diagram{

    border:1px solid #e5e7eb;

    border-radius:14px;

    padding:20px;

    text-align:center;

    margin-bottom:18px;

}

.duct-diagram svg{

    width:100%;

    height:260px;

}

.system-check{

    background:#ecfdf5;

    border:1px solid #bbf7d0;

    border-radius:12px;

    padding:18px;

    display:flex;

    gap:14px;

    align-items:flex-start;

}

.system-check i{

    color:#16a34a;

    font-size:28px;

}

.system-check strong{

    display:block;

    margin-bottom:6px;

    color:#166534;

}

.system-check p{

    margin:0;

    color:#166534;

    line-height:1.6;

}
/*=====================================================
INFORMATION SECTION
=====================================================*/

.duct-info-section{

    margin-top:60px;

}

.info-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:30px;

}

.info-card{

    background:#ffffff;

    border:1px solid #e2e8f0;

    border-radius:16px;

    padding:30px;

    box-shadow:0 10px 30px rgba(15,23,42,.06);

    transition:.3s;

}

.info-card:hover{

    transform:translateY(-4px);

    box-shadow:0 20px 40px rgba(15,23,42,.10);

}

.info-header{

    display:flex;

    align-items:center;

    gap:14px;

    margin-bottom:24px;

}

.info-header i{

    width:48px;

    height:48px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#eff6ff;

    color:#2563eb;

    font-size:20px;

}

.info-header h2{

    margin:0;

    font-size:28px;

    color:#0f172a;

    font-weight:700;

}

.info-card p{

    font-size:16px;

    line-height:1.9;

    color:#475569;

    margin-bottom:20px;

}

/*=====================================================
TABLES
=====================================================*/

.guide-table{

    width:100%;

    border-collapse:collapse;

    overflow:hidden;

    border-radius:12px;

}

.guide-table thead{

    background:#2563eb;

    color:#ffffff;

}

.guide-table th{

    padding:16px;

    text-align:left;

    font-size:15px;

}

.guide-table td{

    padding:15px 16px;

    border-bottom:1px solid #e5e7eb;

    color:#334155;

}

.guide-table tbody tr:nth-child(even){

    background:#f8fafc;

}

.guide-table tbody tr:hover{

    background:#eef6ff;

}

/*=====================================================
TIPS
=====================================================*/

.tips-list{

    margin:0;

    padding-left:0;

    list-style:none;

}

.tips-list li{

    position:relative;

    padding-left:34px;

    margin-bottom:18px;

    color:#475569;

    line-height:1.8;

}

.tips-list li:before{

    content:"✓";

    position:absolute;

    left:0;

    top:2px;

    width:22px;

    height:22px;

    border-radius:50%;

    background:#16a34a;

    color:#fff;

    text-align:center;

    line-height:22px;

    font-size:13px;

    font-weight:bold;

}

/*=====================================================
RESPONSIVE
=====================================================*/

@media (max-width:991px){

    .info-grid{

        grid-template-columns:1fr;

    }

}

@media (max-width:768px){

    .info-card{

        padding:22px;

    }

    .info-header h2{

        font-size:24px;

    }

    .guide-table{

        font-size:14px;

    }

}
/*=========================================
ADVANCED BUTTON
=========================================*/

.advanced-box{

    margin:30px 0;

}

.advanced-box button{

    width:100%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 22px;

    background:#f8fafc;

    border:1px solid #dbe4ef;

    border-radius:14px;

    font-size:16px;

    font-weight:600;

    color:#334155;

    cursor:pointer;

    transition:.3s;

}

.advanced-box button:hover{

    background:#eef6ff;

    border-color:#2563eb;

}

/*=========================================
BUTTONS
=========================================*/

.button-row{

    display:flex;

    gap:20px;

    margin-top:25px;

}

.calculate-duct{

    flex:1;

    background:linear-gradient(135deg,#2563eb,#1d4ed8);

    color:#fff;

    border:none;

    border-radius:14px;

    padding:20px;

    font-size:20px;

    font-weight:700;

    cursor:pointer;

    transition:.3s;

}

.calculate-duct:hover{

    transform:translateY(-2px);

    box-shadow:0 15px 35px rgba(37,99,235,.35);

}

.reset-btn{

    width:180px;

    background:#ffffff;

    color:#334155;

    border:2px solid #dbe4ef;

    border-radius:14px;

    padding:20px;

    font-size:18px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}

.reset-btn:hover{

    background:#f8fafc;

    border-color:#2563eb;

    color:#2563eb;

}
.advanced-content{

    display:none;

    margin-top:25px;

    padding-top:25px;

    border-top:1px solid #e5e7eb;

}

.advanced-content.show{

    display:block;

}

#advancedIcon{

    transition:.3s;

}

#advancedIcon.rotate{

    transform:rotate(180deg);

}
/*=====================================================
TABLETS
=====================================================*/

@media (max-width:1024px){

    .duct-grid{

        grid-template-columns:1fr;

        gap:30px;

    }

    .result-summary{

        grid-template-columns:1fr;

    }

    .results-grid{

        grid-template-columns:1fr;

    }

}


/*=====================================================
MOBILE
=====================================================*/

@media (max-width:768px){

    .duct-container{

        width:95%;

        padding:0;

    }

    .duct-page{

        padding:20px 0;

    }

    /*--------------------
    HERO
    --------------------*/

    .duct-hero{

        grid-template-columns:1fr;

        padding:30px 25px;

        text-align:center;

    }

    .hero-left{

        flex-direction:column;

        align-items:center;

    }

    .hero-content h1{

        font-size:36px;

    }

    .hero-content p{

        font-size:17px;

    }

    .hero-features{

        grid-template-columns:1fr;

        gap:15px;

    }

    .hero-right{

        margin-top:25px;

    }

    .hero-right img{

        max-width:100%;

        height:auto;

    }

    /*--------------------
    FORM
    --------------------*/

    .form-grid{

        grid-template-columns:1fr;

        gap:20px;

    }

    .form-group label{

        font-size:18px;

    }

    .input-unit input,

    select{

        font-size:18px;

    }

    /*--------------------
    BUTTONS
    --------------------*/

    .button-row{

        flex-direction:column;

    }

    .calculate-duct,

    .reset-btn{

        width:100%;

    }

    .calculate-duct{

        font-size:20px;

    }

    /*--------------------
    RESULT SUMMARY
    --------------------*/

    .summary-size{

        font-size:42px;

    }

    .summary-value{

        font-size:34px;

    }

    /*--------------------
    TABLES
    --------------------*/

    .results-table{

        display:block;

        overflow-x:auto;

        white-space:nowrap;

    }

    .guide-table{

        display:block;

        overflow-x:auto;

        white-space:nowrap;

    }

    /*--------------------
    SVG
    --------------------*/

    .duct-diagram svg{

        width:100%;

        height:220px;

    }

    /*--------------------
    INFO SECTION
    --------------------*/

    .info-grid{

        grid-template-columns:1fr;

    }

    .info-card{

        padding:22px;

    }

    .info-header{

        align-items:flex-start;

    }

    .info-header h2{

        font-size:24px;

    }

}


/*=====================================================
SMALL PHONES
=====================================================*/

@media (max-width:480px){

    .hero-content h1{

        font-size:30px;

    }

    .hero-content p{

        font-size:16px;

    }

    .card-header{

        padding:18px;

    }

    .header-title{

        font-size:18px;

    }

    .header-title span{

        font-size:18px;

    }

    .card-body{

        padding:20px;

    }

    .summary-size{

        font-size:34px;

    }

    .summary-value{

        font-size:28px;

    }

    .calculate-duct{

        font-size:18px;

        padding:16px;

    }

    .reset-btn{

        font-size:18px;

        padding:16px;

    }

    .print-results{

        display:none;

    }

}