/* ═══════════════════════════════════════════
   Remco Materials Calculator Page v1.0
   ═══════════════════════════════════════════ */
.remco-calc-page {
    background: #f5f5f0;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.remco-calc-page .ast-below-header,
.remco-calc-page .site-header,
.remco-calc-page #ast-desktop-header,
.remco-calc-page #ast-mobile-header,
.remco-calc-page .ast-above-header,
.remco-calc-page .site-footer,
.remco-calc-page .ast-footer-overlay,
.remco-calc-page #astra-footer-markup {
    display: none !important;
}

.calc-wrap {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 24px;
}

.calc-sec {
    padding: 48px 0;
}

/* ── HERO ── */
.calc-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 48px;
    text-align: center;
    background: linear-gradient(145deg, #0f261a 0%, #1a3c2a 40%, #234d36 100%);
    color: #fff;
}

.calc-hero-bg {
    position: absolute;
    inset: 0;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23fff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.calc-hero-inner { position: relative; z-index: 1; }

.calc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212,168,67, .12);
    border: 1px solid rgba(212,168,67, .25);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #d4a843;
    margin-bottom: 16px;
}
.calc-badge svg { stroke: #d4a843; }

.calc-hero-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.35;
    color: #fff;
}

.calc-hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, .75);
    max-width: 720px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.calc-hero-stats {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.calc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.calc-stat-num { font-size: 18px; font-weight: 800; color: #d4a843; }
.calc-stat-label { font-size: 12px; color: rgba(255, 255, 255, .55); }

.calc-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none !important;
    border: none;
}
.calc-btn--gold {
    background: #d4a843;
    color: #1a3c2a !important;
    box-shadow: 0 4px 16px rgba(212,168,67, .25);
}
.calc-btn--gold:hover {
    background: #c99a35;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212,168,67, .35);
}
.calc-btn--outline {
    background: transparent;
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, .3);
}
.calc-btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .05);
}
.calc-btn--outline-dark {
    background: transparent;
    color: #1a3c2a !important;
    border: 1.5px solid rgba(26, 60, 42, .25);
    text-decoration: none !important;
}
.calc-btn--outline-dark:hover {
    border-color: #1a3c2a;
    background: rgba(26, 60, 42, .04);
}
.calc-btn svg { width: 18px; height: 18px; stroke: currentColor; flex-shrink: 0; }

/* ── SECTION HEADER ── */
.calc-section-header { text-align: center; margin-bottom: 36px; }
.calc-section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: #d4a843;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}
.calc-h2 { font-size: 24px; font-weight: 800; color: #1a3c2a; margin: 0 0 10px; }
.calc-section-desc { font-size: 14px; color: #666; max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* ── STEPS ── */
.calc-steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.calc-step-card {
    background: #fff;
    border: 1px solid #e8e8e3;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.02);
}
.calc-step-num {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(45,106,79,.08);
    color: #2d6a4f;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.calc-step-card h3 { font-size: 15px; font-weight: 700; color: #1a3c2a; margin: 0 0 10px; }
.calc-step-card p { font-size: 12px; color: #666; margin: 0; line-height: 1.6; }

/* ── FORM ── */
.calc-form-sec-wrap {
    background: #f0f0eb;
    border-top: 1px solid #e0e0d8;
    border-bottom: 1px solid #e0e0d8;
}
.calc-form-card {
    background: #fff;
    border: 1px solid #e8e8e3;
    border-radius: 16px;
    max-width: 860px;
    margin: 0 auto;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,.04);
}
.calc-form-title { font-size: 22px; font-weight: 800; color: #1a3c2a; text-align: center; margin: 0 0 8px; }
.calc-form-desc { font-size: 13px; color: #666; text-align: center; margin: 0 0 32px; }

.calc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field--full { grid-column: 1 / -1; }
.calc-field label { font-size: 13px; font-weight: 700; color: #1a3c2a; }
.calc-req { color: #c0392b; font-size: 11px; }
.calc-opt { color: #999; font-size: 11px; font-weight: 400; }

.calc-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e0e0d8;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    color: #333;
    background: #fff;
    transition: all .2s;
    box-sizing: border-box;
}
.calc-input:focus {
    border-color: #2d6a4f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, .08);
}
.calc-field textarea { resize: vertical; min-height: 70px; }
.calc-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 32px;
    cursor: pointer;
}

.calc-submit-wrap { text-align: center; margin-top: 24px; border-top: 1px solid #f0f0eb; padding-top: 20px; }
.calc-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: #d4a843;
    color: #1a3c2a !important;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 4px 16px rgba(212,168,67,.25);
}
.calc-submit-btn:hover {
    background: #c99a35;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212,168,67,.35);
}
.calc-submit-btn svg { width: 20px; height: 20px; }

/* ── RESULTS ── */
.calc-results-sec { background: #f5f5f0; }

.calc-results-summary {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e8e8e3;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,.02);
}
.calc-summary-item { font-size: 13px; color: #1a3c2a; }
.calc-summary-item strong { color: #666; margin-left: 4px; }

.calc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.calc-result-card {
    background: #fff;
    border: 1px solid #e8e8e3;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.02);
    animation: calcCardFadeIn .4s ease forwards;
    opacity: 0;
}
@keyframes calcCardFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.calc-result-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(212,168,67,.08);
    color: #d4a843;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 22px;
}
.calc-result-card-value {
    font-size: 28px;
    font-weight: 800;
    color: #1a3c2a;
    margin-bottom: 4px;
    direction: ltr;
}
.calc-result-card-unit { font-size: 12px; color: #d4a843; font-weight: 700; margin-bottom: 8px; }
.calc-result-card-label { font-size: 13px; color: #666; font-weight: 600; }

.calc-disclaimer {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(212,168,67,.05);
    border: 1px solid rgba(212,168,67,.15);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 28px;
    font-size: 12px;
    color: #666;
    line-height: 1.7;
}
.calc-disclaimer svg { flex-shrink: 0; stroke: #d4a843; margin-top: 2px; }
.calc-disclaimer strong { color: #1a3c2a; }

.calc-results-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.calc-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #25d366;
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 4px 16px rgba(37,211,102,.25);
}
.calc-wa-btn:hover { background: #1ebe5d; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,.35); }
.calc-wa-btn svg { width: 22px; height: 22px; }

/* ── BENEFITS ── */
.calc-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 12px;
}
.calc-benefit-card {
    background: #fff;
    border: 1px solid #e8e8e3;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,.02);
}
.calc-benefit-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(212,168,67,.08);
    color: #d4a843;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.calc-benefit-icon svg { stroke: currentColor; }
.calc-benefit-card h3 { font-size: 16px; font-weight: 700; color: #1a3c2a; margin: 0 0 10px; }
.calc-benefit-card p { font-size: 13px; color: #666; margin: 0; line-height: 1.65; }

/* ── CROSS-LINKS ── */
.calc-crosslinks-sec { background: #f0f0eb; border-top: 1px solid #e0e0d8; }
.calc-crosslinks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.calc-crosslink-card {
    display: block;
    background: #fff;
    border: 1px solid #e8e8e3;
    border-radius: 14px;
    padding: 28px;
    text-decoration: none !important;
    transition: all .25s;
    box-shadow: 0 4px 16px rgba(0,0,0,.02);
}
.calc-crosslink-card:hover { border-color: #d4a843; box-shadow: 0 8px 28px rgba(0,0,0,.06); transform: translateY(-2px); }
.calc-crosslink-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(45,106,79,.06);
    color: #2d6a4f;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.calc-crosslink-icon svg { stroke: currentColor; }
.calc-crosslink-card h3 { font-size: 16px; font-weight: 700; color: #1a3c2a; margin: 0 0 8px; }
.calc-crosslink-card p { font-size: 13px; color: #666; margin: 0; line-height: 1.6; }

/* Toast */
.calc-toast {
    position: fixed;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%) translateY(100px);
    padding: 12px 24px;
    border-radius: 10px;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    transition: transform .3s;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.calc-toast.show { transform: translateX(50%) translateY(0); }
.calc-toast--error { background: #c0392b; color: #fff; }
.calc-toast--success { background: #2d6a4f; color: #fff; }

/* ═══ RESPONSIVE ═══ */
@media(max-width:1024px) {
    .calc-steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:768px) {
    .calc-hero-title { font-size: 26px; }
    .calc-hero-stats { gap: 20px; }
    .calc-form-card { padding: 24px; }
    .calc-form-grid { grid-template-columns: 1fr; }
    .calc-benefits-grid { grid-template-columns: 1fr; }
    .calc-crosslinks-grid { grid-template-columns: 1fr; }
    .calc-results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:480px) {
    .calc-wrap { padding: 0 16px; }
    .calc-hero { padding: 40px 0 32px; }
    .calc-hero-title { font-size: 20px; }
    .calc-steps-grid { grid-template-columns: 1fr; }
    .calc-hero-actions { flex-direction: column; align-items: stretch; }
    .calc-btn { justify-content: center; }
    .calc-results-summary { flex-direction: column; gap: 8px; align-items: center; }
    .calc-results-cta { flex-direction: column; align-items: stretch; }
    .calc-wa-btn { justify-content: center; }
    .calc-results-grid { grid-template-columns: 1fr; }
}
