/* =========================================================
   S355 WEIGHT CALCULATOR
   TRITON ALLOYS INC.
========================================================= */

.weight-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background-image: url("../assets/images/Hero-section/homepage3.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* DARK IMAGE OVERLAY */

.weight-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.86) 0%,
            rgba(0, 0, 0, 0.70) 48%,
            rgba(0, 0, 0, 0.38) 100%
        );

    z-index: 1;
}


/* ORANGE DIAGONAL */

.weight-hero::after {
    content: "";

    position: absolute;
    right: -80px;
    top: 0;

    width: 38%;
    height: 100%;

    background: rgba(255, 123, 0, 0.88);

    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);

    z-index: 2;
}


/* HERO CONTENT */

.weight-hero-content {
    position: relative;
    z-index: 3;

    width: min(1200px, 90%);
    margin: 0 auto;

    padding: 90px 0;
}


.weight-hero-tag {
    display: inline-block;

    margin-bottom: 18px;
    padding: 8px 16px;

    border-left: 4px solid #ff7b00;

    background: rgba(255, 255, 255, 0.08);

    color: #ff9a3d;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}


.weight-hero h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(42px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1px;
}


.weight-hero p {
    max-width: 650px;

    margin: 25px 0 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 17px;
    line-height: 1.8;
}


.weight-hero-line {
    width: 80px;
    height: 4px;

    margin-top: 30px;

    background: #ff7b00;
}


/* =========================================================
   CALCULATOR SECTION
========================================================= */

.weight-calculator-section {
    position: relative;

    padding: 90px 20px 100px;

    background:
        linear-gradient(
            180deg,
            #f4f4f4 0%,
            #ffffff 45%,
            #f5f5f5 100%
        );
}


.weight-calculator-wrapper {
    width: min(1180px, 100%);
    margin: auto;
}


/* HEADING */

.calculator-heading {
    text-align: center;
    margin-bottom: 45px;
}


.calculator-label {
    display: inline-block;

    margin-bottom: 12px;

    color: #ff7b00;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}


.calculator-heading h2 {
    margin: 0;

    color: #333;

    font-size: clamp(30px, 4vw, 46px);
    font-weight: 700;
}


.calculator-heading p {
    max-width: 650px;

    margin: 15px auto 0;

    color: #777;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   MAIN CARD
========================================================= */

.calculator-card {
    position: relative;

    background: #ffffff;

    border-radius: 20px;

    padding: 45px;

    border: 1px solid #e5e5e5;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.10);
}


.calculator-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 25px;
    bottom: 25px;

    width: 5px;

    background: #ff7b00;

    border-radius: 0 5px 5px 0;
}


/* GRID */

.calculator-grid {
    display: grid;

    grid-template-columns: 1.35fr 0.85fr;

    gap: 55px;
}


/* =========================================================
   FORM
========================================================= */

.calculator-fields {
    display: flex;
    flex-direction: column;

    gap: 18px;
}


.calc-field {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.calc-field label,
.dimension-row > label {
    color: #444;

    font-size: 13px;
    font-weight: 700;
}


.calc-control {
    width: 100%;
    height: 48px;

    padding: 0 15px;

    border: 1px solid #d9d9d9;
    border-radius: 7px;

    background: #fafafa;

    color: #444;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.calc-control:focus {
    background: #ffffff;

    border-color: #ff7b00;

    box-shadow:
        0 0 0 3px rgba(255, 123, 0, 0.10);
}


/* =========================================================
   DIMENSION ROW
========================================================= */

.dimension-row {
    display: grid;

    grid-template-columns: 190px 1fr;

    align-items: center;

    gap: 18px;
}


.dimension-input {
    display: grid;

    grid-template-columns: 1fr 100px;

    gap: 8px;
}


.unit-select {
    padding-left: 10px;
    padding-right: 10px;
}


/* =========================================================
   BUTTONS
========================================================= */

.calculator-buttons {
    display: flex;

    gap: 12px;

    margin-top: 15px;
}


.calculate-btn,
.reset-btn {
    min-height: 50px;

    padding: 0 25px;

    border-radius: 7px;

    font-family: inherit;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.calculate-btn {
    flex: 1;

    border: none;

    background: #ff7b00;

    color: #ffffff;
}


.calculate-btn span {
    margin-left: 12px;

    font-size: 18px;
}


.calculate-btn:hover {
    background: #e96f00;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(255, 123, 0, 0.25);
}


.reset-btn {
    border: 1px solid #d6d6d6;

    background: #ffffff;

    color: #555;
}


.reset-btn:hover {
    background: #f5f5f5;
}


/* =========================================================
   RESULT PANEL
========================================================= */

.calculator-result {
    position: relative;

    padding: 35px;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #3d3d3d,
            #242424
        );

    overflow: hidden;
}


.calculator-result::after {
    content: "";

    position: absolute;

    right: -80px;
    bottom: -100px;

    width: 220px;
    height: 220px;

    border: 35px solid rgba(255, 123, 0, 0.12);

    border-radius: 50%;
}


.result-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    margin-bottom: 25px;

    border-radius: 50%;

    background: rgba(255, 123, 0, 0.15);

    color: #ff7b00;

    font-size: 24px;
}


.result-small-title {
    color: #ff9a3d;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}


.calculator-result h3 {
    margin: 8px 0 25px;

    color: #ffffff;

    font-size: 27px;
}


/* RESULT BOX */

.result-box {
    position: relative;

    display: grid;

    grid-template-columns: 1fr 90px 35px;

    align-items: center;

    gap: 8px;

    margin-bottom: 12px;

    padding: 8px 12px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.06);
}


.result-box span {
    color: #bdbdbd;

    font-size: 11px;

    line-height: 1.4;
}


.result-number {
    width: 100%;

    padding: 7px 5px;

    border: none;

    background: transparent;

    color: #ffffff;

    font-family: inherit;

    font-size: 18px;
    font-weight: 700;

    text-align: right;

    outline: none;
}


.result-box strong {
    color: #ff7b00;

    font-size: 12px;
}


/* RESULT NOTE */

.result-note {
    position: relative;
    z-index: 2;

    display: flex;

    gap: 10px;

    margin-top: 25px;
}


.result-note > span {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 20px;
    height: 20px;

    border-radius: 50%;

    background: #ff7b00;

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
}


.result-note p {
    margin: 0;

    color: #999;

    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   INFORMATION BOX
========================================================= */

.calculator-information {
    display: flex;

    gap: 20px;

    margin-top: 30px;

    padding: 25px 30px;

    border-radius: 12px;

    border-left: 5px solid #ff7b00;

    background: #eeeeee;
}


.info-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #ff7b00;

    color: #ffffff;

    font-weight: 700;
}


.calculator-information h4 {
    margin: 0 0 8px;

    color: #333;

    font-size: 15px;
}


.calculator-information p {
    margin: 0 0 8px;

    color: #666;

    font-size: 12px;
    line-height: 1.7;
}


.calculator-information p:last-child {
    margin-bottom: 0;
}


.calculator-information a {
    color: #ff7b00;

    font-weight: 700;

    text-decoration: none;
}


.calculator-information a:hover {
    text-decoration: underline;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .weight-hero {
        min-height: 380px;
    }

    .weight-hero::after {
        width: 30%;
        opacity: 0.6;
    }

    .calculator-card {
        padding: 35px 30px;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .calculator-result {
        min-height: auto;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .weight-hero {
        min-height: 360px;

        background-position: center;
    }

    .weight-hero::after {
        display: none;
    }

    .weight-hero-content {
        width: calc(100% - 40px);

        padding: 70px 0;
    }

    .weight-hero-tag {
        font-size: 10px;

        padding: 7px 12px;
    }

    .weight-hero h1 {
        font-size: 40px;

        line-height: 1.1;
    }

    .weight-hero p {
        margin-top: 18px;

        font-size: 14px;
        line-height: 1.7;
    }


    .weight-calculator-section {
        padding: 55px 15px 65px;
    }


    .calculator-heading {
        margin-bottom: 30px;
    }


    .calculator-heading h2 {
        font-size: 30px;
    }


    .calculator-heading p {
        font-size: 13px;
    }


    .calculator-card {
        padding: 30px 20px;

        border-radius: 15px;
    }


    .calculator-card::before {
        top: 18px;
        bottom: 18px;

        width: 4px;
    }


    .dimension-row {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 7px;
    }


    .dimension-input {
        grid-template-columns: 1fr 90px;
    }


    .calculator-buttons {
        flex-direction: column;
    }


    .calculate-btn,
    .reset-btn {
        width: 100%;
    }


    .calculator-result {
        padding: 25px 20px;
    }


    .calculator-result h3 {
        font-size: 23px;
    }


    .result-box {
        grid-template-columns: 1fr 75px 30px;
    }


    .result-number {
        font-size: 16px;
    }


    .calculator-information {
        padding: 20px;

        gap: 14px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .weight-hero {
        min-height: 330px;
    }


    .weight-hero h1 {
        font-size: 34px;
    }


    .weight-hero p {
        font-size: 13px;
    }


    .calculator-heading h2 {
        font-size: 27px;
    }


    .calculator-card {
        padding: 25px 16px;
    }


    .dimension-input {
        grid-template-columns: 1fr 80px;
    }


    .calculator-result {
        padding: 22px 16px;
    }


    .result-box {
        grid-template-columns: 1fr 65px 28px;

        padding: 7px 8px;
    }


    .result-box span {
        font-size: 10px;
    }


    .result-number {
        font-size: 15px;
    }


    .calculator-information {
        display: block;
    }


    .info-icon {
        margin-bottom: 12px;
    }

    
}

