/* ============================================================
   METAL WEIGHT CALCULATOR – Steel Mart India
   css/metal-calculator.css
   ============================================================ */

/* ── Section wrapper ───────────────────────────────────────── */
#metal-calculator-section {
    background: linear-gradient(135deg, #0d1f3c 0%, #1a3c6e 50%, #0d1f3c 100%);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}
#metal-calculator-section .mc-deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}
#metal-calculator-section .mc-deco-1 { top:-80px; right:-80px; width:320px; height:320px; }
#metal-calculator-section .mc-deco-2 { bottom:-60px; left:-60px; width:240px; height:240px; }

/* ── Section header ─────────────────────────────────────────── */
.mc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.mc-eyebrow-line {
    width: 40px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, #e8a020);
}
.mc-eyebrow-line.right { background: linear-gradient(90deg, #e8a020, transparent); }
.mc-eyebrow-text {
    color: #e8a020;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.mc-heading {
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}
.mc-heading span { color: #e8a020; }
.mc-subhead {
    color: rgba(255,255,255,0.6);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Card ───────────────────────────────────────────────────── */
#calc-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

/* ── Form controls ──────────────────────────────────────────── */
.calc-label {
    display: block;
    color: rgba(255,255,255,0.65);
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 7px;
}
.calc-select,
.calc-input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}
.calc-select option { background: #1a3c6e; color: #fff; }
.calc-select:focus,
.calc-input:focus {
    border-color: #e8a020;
    box-shadow: 0 0 0 3px rgba(232,160,32,0.18);
}
.calc-input::placeholder { color: rgba(255,255,255,0.3); }
.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* optgroup styling for grouped dropdown */
.calc-select optgroup {
    font-style: normal;
    font-weight: 700;
    color: #e8a020;
    background: #0d1f3c;
}
.calc-select optgroup option {
    font-weight: 400;
    color: #fff;
    padding-left: 8px;
}

/* ── Buttons ────────────────────────────────────────────────── */
#calc-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e8a020, #f5c842);
    color: #0d1f3c;
    border: none;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(232,160,32,0.35);
}
#calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(232,160,32,0.5);
}
#calc-reset {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.25s ease;
}
#calc-reset:hover { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.3); }

/* ── Result panel ───────────────────────────────────────────── */
#calc-result-panel {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 30px;
    height: 100%;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#calc-idle { text-align: center; }
.calc-idle-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(232,160,32,0.1);
    border: 2px dashed rgba(232,160,32,0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.calc-idle-icon i { font-size: 28px; color: rgba(232,160,32,0.6); }
.calc-idle-text {
    color: rgba(255,255,255,0.4);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    margin: 0;
}
#calc-result { display: none; text-align: center; }
#calc-result-label {
    color: rgba(255,255,255,0.5);
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
#calc-kg {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #e8a020;
    line-height: 1.2;
    word-wrap: break-word;
    word-break: break-all;
    margin-bottom: 4px;
}
.calc-unit-label {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-top: 0;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.calc-lbs-divider {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 14px;
    margin-bottom: 16px;
}
#calc-lbs {
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    word-wrap: break-word;
    word-break: break-all;
    margin-bottom: 4px;
}
.calc-stats-strip {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.calc-stat-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px 16px;
    min-width: 80px;
    text-align: center;
}
.calc-stat-val {
    color: #e8a020;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}
.calc-stat-lbl {
    color: rgba(255,255,255,0.4);
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    margin-top: 4px;
    letter-spacing: 0.5px;
}
#calc-formula-note {
    margin-top: 18px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

/* ── Density reference strip ────────────────────────────────── */
.mc-density-strip {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 28px;
    margin-top: 36px;
}
.mc-density-title {
    color: rgba(255,255,255,0.7);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.density-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    color: rgba(255,255,255,0.55);
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    margin: 4px 3px;
}

/* ── Animation ───────────────────────────────────────────────── */
@keyframes calcPop {
    0%   { opacity:0; transform:scale(0.85) translateY(10px); }
    60%  { transform:scale(1.04) translateY(-2px); }
    100% { opacity:1; transform:scale(1) translateY(0); }
}
.calc-pop { animation: calcPop 0.45s cubic-bezier(.4,0,.2,1) forwards; }

/* ── Dynamic field rows ─────────────────────────────────────── */
.calc-field-row { margin-bottom: 16px; }

/* ── SEO Page – Stats counters ──────────────────────────────── */
.mc-stats-section {
    background: linear-gradient(135deg, #1a3c6e, #0d1f3c);
    padding: 60px 0;
    text-align: center;
}
.mc-stat-counter {
    padding: 20px;
}
.mc-stat-number {
    font-family: 'Roboto', sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: #e8a020;
    line-height: 1;
}
.mc-stat-suffix { font-size: 28px; }
.mc-stat-desc {
    color: rgba(255,255,255,0.7);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    margin-top: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── SEO Page – Product cards ───────────────────────────────── */
.mc-product-section { padding: 60px 0; background: #f8f9fb; }
.mc-product-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    margin-bottom: 24px;
    border-top: 4px solid #1a3c6e;
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}
.mc-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(26,60,110,0.18);
}
.mc-product-card h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a3c6e;
    margin: 0 0 14px 0;
}
.mc-product-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mc-product-card ul li {
    padding: 5px 0 5px 20px;
    position: relative;
    color: #555;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}
.mc-product-card ul li:last-child { border-bottom: none; }
.mc-product-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #e8a020;
    font-size: 11px;
    top: 6px;
}
.mc-card-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a3c6e, #2563a8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.mc-card-icon i { color: #e8a020; font-size: 20px; }

/* ── SEO Page – Testimonials ────────────────────────────────── */
.mc-testimonials-section {
    background: #fff;
    padding: 60px 0;
}
.mc-testimonial-card {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    border-left: 4px solid #e8a020;
    position: relative;
}
.mc-testimonial-card::before {
    content: '\201C';
    font-size: 80px;
    color: rgba(26,60,110,0.08);
    position: absolute;
    top: -10px;
    left: 16px;
    font-family: Georgia, serif;
    line-height: 1;
}
.mc-testimonial-text {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
    font-style: italic;
}
.mc-testimonial-name {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1a3c6e;
}
.mc-testimonial-company {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.mc-stars { color: #e8a020; font-size: 13px; margin-bottom: 8px; }

/* ── SEO Page – Intro strip ─────────────────────────────────── */
.mc-intro-strip {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}
.mc-intro-strip h2 {
    color: #1a3c6e;
    font-size: 22px;
    font-weight: 700;
    margin-top: 0;
}
.mc-intro-strip p { color: #555; line-height: 1.8; }

/* ── Global links strip (manufacture/supply countries) ───────── */
.mc-global-strip {
    background: linear-gradient(135deg, #e8a020, #f5c842);
    padding: 20px 0;
    text-align: center;
}
.mc-global-strip .mc-global-item {
    display: inline-block;
    padding: 6px 18px;
    color: #0d1f3c;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 600;
}
.mc-global-strip .mc-global-sep {
    color: rgba(13,31,60,0.4);
    font-size: 18px;
    vertical-align: middle;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991px) {
    #calc-card { padding: 24px; }
    .mc-heading { font-size: 28px; }
}
@media (max-width: 767px) {
    #calc-result-panel { min-height: auto; margin-top: 24px; }
    #calc-kg { font-size: 36px !important; }
    .mc-stat-number { font-size: 40px; }
    #metal-calculator-section { padding: 40px 0; }
    .mc-global-item { display: block; }
    .mc-global-sep { display: none; }
}
