/* =========================================================
   SMARTMYTOOLS — VOLUME CALCULATOR
   Volume Calculator Page Layout
   ========================================================= */


/* =========================================================
   PAGE HERO
   ========================================================= */

.calculator-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 25px;
    box-sizing: border-box;
}

.calculator-hero h1 {
    color: #123f68;
    font-size: 32px;
    margin: 0 0 12px;
}

.calculator-hero p {
    color: #333;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}


/* =========================================================
   VOLUME PAGE
   ========================================================= */

.volume-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 50px;
    box-sizing: border-box;
}


/* =========================================================
   MAIN CONTENT + SIDEBAR
   ========================================================= */

.volume-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.volume-main {
    min-width: 0;
    width: 100%;
}


/* =========================================================
   SIDEBAR AD
   ========================================================= */

.volume-sidebar {
    width: 300px;
    position: sticky;
    top: 20px;
    align-self: start;
}

.volume-sidebar .ad-placeholder {
    width: 300px;
    height: 250px;
}


/* =========================================================
   TOP ADVERTISEMENT
   ========================================================= */

.top-ad {
    width: min(970px, calc(100% - 40px));
    min-height: 90px;
    margin: 0 auto 35px;

    border: 1px dashed #cbd5e1;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background: #f8fafc;
    color: #94a3b8;
    font-size: 14px;
}


/* =========================================================
   SHAPE CALCULATOR
   ========================================================= */

.shape-calculator {
    width: 100%;
    margin: 0 0 35px;
}

.shape-calculator .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}


/* =========================================================
   SHAPE CARD
   ========================================================= */

.shape-card {
    width: 100%;
    box-sizing: border-box;

    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 12px;

    padding: 26px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}


/* =========================================================
   SHAPE CONTENT
   ========================================================= */

.shape-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    align-items: center;
}

.shape-content h2 {
    color: #123f68;
    font-size: 24px;
    margin: 0 0 12px;
}

.shape-description {
    color: #333;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 25px;
}


/* =========================================================
   SHAPE DIAGRAM
   ========================================================= */

.shape-diagram {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 180px;

    background: #f4f7fb;
    border-radius: 10px;
}

.shape-diagram img {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
}

.shape-svg {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto;
}


/* =========================================================
   INPUT GROUP
   ========================================================= */

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;

    color: #333;
    font-size: 14px;
    font-weight: 600;

    margin-bottom: 7px;
}

.input-with-unit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 135px;
    gap: 8px;
}

.input-with-unit input,
.input-with-unit select {
    width: 100%;
    box-sizing: border-box;

    padding: 11px 13px;

    border: 1px solid #cbd5e1;
    border-radius: 7px;

    background: #ffffff;
    color: #222;

    font-family: inherit;
    font-size: 15px;
}

.input-with-unit input:focus,
.input-with-unit select:focus {
    outline: none;

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}


/* =========================================================
   CALCULATOR BUTTONS
   ========================================================= */

.calculator-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 20px;
}

.calculator-actions button,
.calculator-actions .btn {
    padding: 10px 18px;

    border: 1px solid #cbd5e1;
    border-radius: 7px;

    background: #ffffff;
    color: #123f68;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: background 0.2s ease,
                border-color 0.2s ease;
}

.calculator-actions button:hover,
.calculator-actions .btn:hover {
    background: #f4f7fb;
}

.calculator-actions .btn-primary,
.calculator-actions button.calculate-btn {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.calculator-actions .btn-primary:hover,
.calculator-actions button.calculate-btn:hover {
    background: #1d4ed8;
}

.calculator-actions .btn-secondary {
    background: #e8eef5;
    color: #123f68;
}


/* =========================================================
   SHAPE RESULT
   ========================================================= */

.shape-result {
    margin-top: 20px;

    padding: 16px 18px;

    background: #f4f7fb;

    border-left: 4px solid #2563eb;
    border-radius: 6px;

    box-sizing: border-box;
}

.shape-result h3 {
    color: #123f68;
    font-size: 18px;
    margin: 0 0 14px;
}

.shape-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 9px 0;

    border-bottom: 1px solid #dbe3ec;
}

.shape-result-row:last-child {
    border-bottom: none;
}

.shape-result-row span {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.shape-result-row strong {
    color: #123f68;
    font-size: 16px;
}


/* =========================================================
   VOLUME EXPLANATION
   ========================================================= */

.volume-explanation {
    width: 100%;
    max-width: none;

    margin: 55px 0 40px;
    padding: 0;

    box-sizing: border-box;
}

.volume-explanation h2 {
    color: #123f68;
    font-size: 32px;

    margin: 0 0 15px;
}

.volume-explanation h3 {
    color: #123f68;
    font-size: 24px;

    margin-top: 32px;
    margin-bottom: 14px;
}

.volume-explanation h4 {
    color: #123f68;
    font-size: 19px;

    margin-top: 28px;
    margin-bottom: 12px;
}

.volume-explanation p {
    color: #1f2937;

    font-size: 16px;
    line-height: 1.7;

    margin: 0 0 18px;
}

.volume-explanation ul {
    margin-top: 5px;
    margin-bottom: 20px;
    padding-left: 25px;
}

.volume-explanation li {
    color: #1f2937;

    font-size: 16px;
    line-height: 1.7;

    margin-bottom: 4px;
}


/* =========================================================
   FORMULA BOX
   ========================================================= */

.formula-box {
    width: 100%;
    box-sizing: border-box;

    background: #f4f7fb;

    border-left: 4px solid #2563eb;
    border-radius: 6px;

    padding: 14px 18px;

    margin: 15px 0 20px;

    color: #123f68;

    font-size: 17px;
    font-weight: 600;

    overflow-x: auto;
}


/* =========================================================
   DISCLAIMER
   ========================================================= */

.disclaimer-section {
    width: 100%;
    max-width: none;

    margin: 45px 0 0;
    padding: 25px 28px;

    box-sizing: border-box;

    background: #f4f7fb;

    border-radius: 8px;
}

.disclaimer-section h2 {
    color: #123f68;

    font-size: 28px;

    margin: 0 0 14px;
}

.disclaimer-section p {
    color: #333;

    font-size: 15px;
    line-height: 1.7;

    margin: 0 0 16px;
}

.disclaimer-section p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   SIDEBAR AD PLACEHOLDER
   ========================================================= */

.ad-placeholder {
    width: 300px;
    height: 250px;

    border: 1px dashed #cbd5e1;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background: #f8fafc;

    color: #94a3b8;
    font-size: 14px;
}


/* =========================================================
   BOTTOM STICKY AD
   ========================================================= */

.bottom-sticky-ad {
    display: flex;

    position: fixed;

    left: 50%;
    bottom: 0;

    transform: translateX(-50%);

    width: min(970px, calc(100% - 40px));

    min-height: 90px;

    z-index: 9998;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px solid #d9e0e7;
    border-bottom: none;

    border-radius: 8px 8px 0 0;

    background: #eef1f5;

    color: #94a3b8;
    font-size: 14px;
}


/* =========================================================
   FOOTER CLEARANCE
   ========================================================= */

.site-footer {
    margin-top: 30px;
    padding-bottom: 120px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .volume-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .volume-sidebar {
        display: none;
    }

}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .calculator-hero {
        padding: 25px 16px 20px;
    }

    .calculator-hero h1 {
        font-size: 28px;
    }

    .volume-page {
        padding: 0 16px 45px;
    }

    .shape-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shape-diagram {
        order: -1;
        min-height: 150px;
    }

    .shape-card {
        padding: 20px;
    }

    .shape-content h2 {
        font-size: 22px;
    }

    .input-with-unit {
        grid-template-columns: 1fr;
    }

    .volume-explanation {
        margin-top: 45px;
    }

    .volume-explanation h2 {
        font-size: 28px;
    }

    .volume-explanation h3 {
        font-size: 22px;
    }

    .disclaimer-section {
        padding: 22px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .top-ad {
        width: calc(100% - 32px);
        min-height: 90px;
        margin-bottom: 25px;
    }

    .bottom-sticky-ad {
        left: 0;
        right: 0;

        transform: none;

        width: 100%;

        min-height: 60px;

        border-radius: 0;

        border-left: none;
        border-right: none;
        border-bottom: none;

        border-top: 1px solid #d9e0e7;

        z-index: 9999;
    }

    .site-footer {
        padding-bottom: 85px;
    }

    .calculator-actions {
        width: 100%;
    }

    .calculator-actions button,
    .calculator-actions .btn {
        width: auto;
    }

    .formula-box {
        font-size: 16px;
    }

    .disclaimer-section {
        padding: 20px;
    }

    .disclaimer-section h2 {
        font-size: 24px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .calculator-hero h1 {
        font-size: 26px;
    }

    .shape-card {
        padding: 18px;
    }

    .shape-content h2 {
        font-size: 20px;
    }

    .calculator-actions {
        flex-direction: column;
    }

    .calculator-actions button,
    .calculator-actions .btn {
        width: 100%;
    }

    .volume-explanation h2 {
        font-size: 26px;
    }

    .volume-explanation h3 {
        font-size: 21px;
    }

    .volume-explanation p,
    .volume-explanation li {
        font-size: 15px;
    }

}
/* =========================================================
   ADVERTISEMENT FIX
   ========================================================= */

/* ---------- TOP AD: NORMAL FLOW, NOT STICKY ---------- */

.top-ad {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    z-index: auto !important;

    width: min(970px, calc(100% - 40px));
    height: 90px;
    min-height: 90px;

    margin: 0 auto 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px dashed #cbd5e1;
    border-radius: 8px;

    background: #f8fafc;
    color: #94a3b8;

    font-size: 14px;
}


/* ---------- RIGHT SIDEBAR AD ---------- */

.volume-sidebar {
    width: 300px;
    min-width: 300px;

    position: sticky;
    top: 20px;

    align-self: start;
}


/* Make the sidebar advertisement visible */

.volume-sidebar > div,
.volume-sidebar .ad-placeholder,
.volume-sidebar .sidebar-ad,
.volume-sidebar .ad-box {
    width: 300px;
    height: 250px;
    min-height: 250px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px dashed #cbd5e1;
    border-radius: 8px;

    background: #f8fafc;
    color: #94a3b8;

    font-size: 14px;
}


/* ---------- BOTTOM STICKY AD ---------- */

.bottom-sticky-ad {
    position: fixed !important;

    left: 50%;
    bottom: 0;

    transform: translateX(-50%);

    width: min(970px, calc(100% - 40px));
    min-height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9998;

    box-sizing: border-box;

    border: 1px solid #d9e0e7;
    border-bottom: none;

    border-radius: 8px 8px 0 0;

    background: #eef1f5;
    color: #94a3b8;

    font-size: 14px;
}


/* ---------- MOBILE ---------- */

@media (max-width: 900px) {

    .volume-sidebar {
        display: none;
    }

    .top-ad {
        position: static !important;
    }

}


@media (max-width: 600px) {

    .top-ad {
        width: calc(100% - 32px);
        height: 90px;
        min-height: 90px;
    }

    .bottom-sticky-ad {
        left: 0;
        right: 0;
        transform: none;

        width: 100%;
        min-height: 60px;

        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;

        border-top: 1px solid #d9e0e7;
    }

}

/* =========================================================
   SMARTMYTOOLS VOLUME CALCULATOR
   FINAL SHAPE CARD LAYOUT
   ========================================================= */

/* ---------------------------------------------------------
   Shape Card
   --------------------------------------------------------- */

.shape-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 220px !important;
    gap: 25px !important;
    align-items: start !important;
    width: 100%;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   Main Shape Content
   --------------------------------------------------------- */

.shape-content {
    display: block !important;
    min-width: 0;
    width: 100%;
}


/* ---------------------------------------------------------
   Shape Heading
   --------------------------------------------------------- */

.shape-content h2 {
    display: block !important;
    width: 100%;
    margin: 0 0 10px;
}


/* ---------------------------------------------------------
   Description
   --------------------------------------------------------- */

.shape-description {
    display: block !important;
    width: 100%;
    margin: 0 0 28px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   Input Groups
   --------------------------------------------------------- */

.shape-content .input-group {
    display: block !important;
    width: 100%;
    margin-bottom: 16px;
}

.shape-content .input-group label {
    display: block !important;
    width: 100%;
    margin-bottom: 6px;
}


/* ---------------------------------------------------------
   Input + Unit
   --------------------------------------------------------- */

.shape-content .input-with-unit {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 135px !important;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.shape-content .input-with-unit input,
.shape-content .input-with-unit select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   Calculate / Clear Buttons
   --------------------------------------------------------- */

.shape-content .calculator-buttons,
.shape-content .calculator-actions {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.shape-content .calculator-buttons button,
.shape-content .calculator-actions button {
    flex: 0 0 auto;
}


/* ---------------------------------------------------------
   Result Box
   --------------------------------------------------------- */

.shape-content .shape-result {
    display: block !important;
    width: 100% !important;
    margin-top: 20px;
    padding: 18px 20px;

    background: #f4f7fb;
    border-left: 4px solid #2563eb;
    border-radius: 8px;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   Result Title
   --------------------------------------------------------- */

.shape-result .result-title {
    display: block !important;
    width: 100%;
    margin: 0 0 14px;

    font-size: 18px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   Result Lines
   --------------------------------------------------------- */

.shape-result .result-line {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;

    width: 100%;
    margin: 0 0 10px;
    padding: 0;

    gap: 20px;

    font-size: 15px;
    line-height: 1.5;
}

.shape-result .result-line strong {
    flex: 0 0 105px;
    margin: 0;
    font-weight: 700;
}

.shape-result .result-line span {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-weight: 400;
}


/* ---------------------------------------------------------
   Final Result
   --------------------------------------------------------- */

.shape-result .result-final {
    margin-top: 12px;
    margin-bottom: 0;
    padding-top: 12px;

    border-top: 1px solid #dbe2ea;
}


/* ---------------------------------------------------------
   Result Action Buttons
   --------------------------------------------------------- */

.shape-content .result-actions {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;

    width: 100%;
    margin-top: 14px;
}

.shape-content .result-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 9px 16px;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    background: #ffffff;
    color: #123f68;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    box-sizing: border-box;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.shape-content .result-action-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   Shape Diagram
   --------------------------------------------------------- */

.shape-card .shape-diagram {
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 220px;
    min-height: 220px;

    box-sizing: border-box;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .shape-card {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .shape-card .shape-diagram {
        width: 100%;
        min-height: 180px;
        order: 2;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .shape-card {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px !important;
    }

    .shape-content {
        width: 100%;
    }

    .shape-content .input-with-unit {
        grid-template-columns: 1fr !important;
    }

    .shape-content .calculator-buttons,
    .shape-content .calculator-actions {
        width: 100%;
    }

    .shape-content .calculator-buttons button,
    .shape-content .calculator-actions button {
        flex: 1;
    }

    .shape-result .result-line {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 3px !important;
    }

    .shape-result .result-line strong {
        flex: none;
    }

    .shape-result .result-line span {
        width: 100%;
    }

    .shape-content .result-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .shape-content .result-action-btn {
        width: 100%;
    }

    .shape-card .shape-diagram {
        width: 100%;
        min-height: 180px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .shape-card {
        padding: 16px !important;
    }

    .shape-content h2 {
        font-size: 21px;
    }

    .shape-content .result-actions {
        grid-template-columns: 1fr 1fr;
    }

}

/* ==========================================
   Volume Calculator Breadcrumb
   ========================================== */

.breadcrumb {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 12px 0;
    box-sizing: border-box;
}
/* ==========================================
   Toast Notification
   ========================================== */

.toast {
    position: fixed;
    left: 50%;
    bottom: 90px;

    transform: translateX(-50%) translateY(20px);

    background: #123f68;
    color: #ffffff;

    padding: 12px 20px;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;
    z-index: 9999;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    visibility: visible;

    transform: translateX(-50%) translateY(0);
}


/* Mobile */
@media (max-width: 600px) {

    .toast {
        bottom: 85px;

        max-width: calc(100% - 32px);

        padding: 11px 16px;

        font-size: 13px;

        white-space: normal;
        text-align: center;
    }

}