@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* =========================================================
   Body Type Calculator
   All styles are scoped to .btcalc
   Designed to avoid conflicts with WordPress/Kadence
   ========================================================= */

.btcalc {
    /* Calculator-specific design variables */
    --btcalc-bg-card: #ffffff;
    --btcalc-bg-input: #f8fafc;
    --btcalc-border-color: #e2e8f0;
    --btcalc-primary: #4f46e5;
    --btcalc-primary-light: #6366f1;
    --btcalc-primary-glow: rgba(99, 102, 241, 0.12);

    --btcalc-accent-cyan: #0891b2;
    --btcalc-accent-emerald: #059669;
    --btcalc-accent-rose: #e11d48;
    --btcalc-accent-amber: #d97706;
    --btcalc-accent-purple: #9333ea;

    --btcalc-text-main: #0f172a;
    --btcalc-text-muted: #475569;
    --btcalc-text-dim: #64748b;

    --btcalc-font-sans:
        'Poppins',
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;


    --btcalc-font-mono:
        'JetBrains Mono',
        monospace;

    --btcalc-radius-md: 14px;
    --btcalc-radius-lg: 20px;

    --btcalc-shadow-card:
        0 10px 30px -5px rgba(0, 0, 0, 0.05),
        0 4px 12px -2px rgba(0, 0, 0, 0.03);

    --btcalc-shadow-glow:
        0 12px 35px -5px rgba(99, 102, 241, 0.18);

    width: 100%;
    max-width: 100%;
    color: var(--btcalc-text-main);
    font-family: var(--btcalc-font-sans);
    line-height: 1.5;
    box-sizing: border-box;
}

/* Scoped box sizing */
.btcalc,
.btcalc *,
.btcalc *::before,
.btcalc *::after {
    box-sizing: border-box;
}

/* Prevent theme typography from changing calculator elements */
.btcalc h1,
.btcalc h2,
.btcalc h3,
.btcalc h4,
.btcalc h5,
.btcalc h6,
.btcalc p,
.btcalc ul,
.btcalc ol {
    margin-top: 0;
}

/* Calculator links */
.btcalc a {
    color: inherit;
}

/* =========================================================
   Main Wrapper
   ========================================================= */

.btcalc .page-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* =========================================================
   Main Grid
   ========================================================= */

.btcalc .calc-grid-layout {
    width: 100%;
    max-width: 1280px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* =========================================================
   Cards
   ========================================================= */

.btcalc .glass-panel {
    background: var(--btcalc-bg-card);
    border: 1px solid var(--btcalc-border-color);
    border-radius: var(--btcalc-radius-lg);
    box-shadow: var(--btcalc-shadow-card);
    width: 100%;
}

/* =========================================================
   Form
   ========================================================= */

.btcalc .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.btcalc .form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--btcalc-text-main);
}

.btcalc .input-field {
    width: 100%;
    padding: 0.85rem 1rem;
    background-color: var(--btcalc-bg-input);
    border: 1px solid var(--btcalc-border-color);
    border-radius: var(--btcalc-radius-md);
    color: var(--btcalc-text-main);
    font-family: var(--btcalc-font-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btcalc .input-field:focus {
    border-color: var(--btcalc-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px var(--btcalc-primary-glow);
}

/* Make select controls clean with single custom arrow */
.btcalc select.input-field {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1.1rem !important;
    padding-right: 2.25rem !important;
}

.btcalc select.input-field::-ms-expand {
    display: none;
}


/* =========================================================
   Buttons
   ========================================================= */

.btcalc .btn-secondary {
    padding: 0.65rem 1rem;
    background: #ffffff;
    border: 1px solid var(--btcalc-border-color);
    color: var(--btcalc-text-main);
    border-radius: var(--btcalc-radius-md);
    font-family: var(--btcalc-font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btcalc .btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--btcalc-primary-light);
    color: var(--btcalc-primary);
}

.btcalc .btn-secondary:focus-visible {
    outline: 2px solid var(--btcalc-primary);
    outline-offset: 2px;
}

/* =========================================================
   Visual/Image Container
   ========================================================= */

.btcalc .visual-container {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--btcalc-border-color);
    border-radius: var(--btcalc-radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btcalc .visual-container img {
    display: block;
    max-width: 100%;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
    .btcalc .calc-grid-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .btcalc .page-wrapper {
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 500px) {
    .btcalc .glass-panel {
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .btcalc .visual-container {
        padding: 1rem;
    }
}
