* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Quicksand', sans-serif;
    background: #fef9f4;
    color: #3e2e2a;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.imc-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 14%, rgba(212, 141, 122, 0.18), transparent 28%),
        radial-gradient(circle at 92% 22%, rgba(180, 95, 77, 0.10), transparent 28%),
        linear-gradient(135deg, #fef9f4 0%, #fdf3ee 48%, #fff 100%);
}

/* decorative animated blobs */
.imc-bg {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(2px);
    opacity: 0.45;
}

.imc-bg-one {
    width: 280px;
    height: 280px;
    background: rgba(212, 141, 122, 0.22);
    top: 110px;
    left: -120px;
    animation: imcFloatOne 8s ease-in-out infinite;
}

.imc-bg-two {
    width: 340px;
    height: 340px;
    background: rgba(180, 95, 77, 0.13);
    right: -150px;
    bottom: 120px;
    animation: imcFloatTwo 9s ease-in-out infinite;
}

@keyframes imcFloatOne {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18px, 24px) scale(1.06); }
}

@keyframes imcFloatTwo {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-18px, -18px) scale(1.05); }
}

/* header */
.imc-header {
    position: sticky;
    top: 0;
    z-index: 20;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 240, 235, 0.82), rgba(253, 226, 212, 0.82));
    border-bottom: 2px solid rgba(255, 215, 190, 0.25);
    backdrop-filter: blur(8px);
    border-radius: 0 0 32px 32px;
    box-shadow: 0 8px 26px rgba(180, 95, 77, 0.06);
}

.imc-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    color: #b45f4d;
    font-weight: 700;
}

.imc-logo-icon {
    color: #d48d7a;
}

.imc-logo-icon i {
    font-size: 1.55rem;
}

.imc-lang {
    position: relative;
}

.imc-lang-btn {
    background: rgba(255,255,255,0.5);
    border: 2px solid #d48d7a;
    border-radius: 30px;
    padding: 7px 16px 7px 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #4d3630;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Quicksand', sans-serif;
    transition: 0.2s;
}

.imc-lang-btn:hover {
    background: rgba(212, 141, 122, 0.08);
    transform: translateY(-1px);
}

.imc-lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 20px;
    padding: 8px 0;
    min-width: 112px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border: 1px solid #f0ddd5;
    display: none;
    z-index: 999;
    list-style: none;
    margin: 0;
}

.imc-lang-menu.open {
    display: block;
}

.imc-lang-menu li {
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 700;
    color: #4d3630;
    transition: 0.15s;
    font-size: 0.95rem;
}

.imc-lang-menu li:hover {
    background: #fdf3ee;
}

/* main */
.imc-main {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: 0 auto;
    padding: 42px 24px 80px;
}

.imc-hero {
    text-align: center;
    animation: imcFadeUp 0.7s ease both;
}

.imc-badge {
    width: fit-content;
    margin: 0 auto 18px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    color: #b45f4d;
    border: 1px solid #f0ddd5;
    border-radius: 60px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(212, 141, 122, 0.10);
}

.imc-badge i {
    color: #d48d7a;
    animation: imcPulse 1.8s ease-in-out infinite;
}

@keyframes imcPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.16); }
}

.imc-hero h1 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.7rem, 7vw, 5rem);
    line-height: 1.05;
    color: #4d3630;
}

.imc-hero h1::first-letter {
    color: #b45f4d;
}

.imc-hero p {
    max-width: 650px;
    margin: 20px auto 0;
    color: #6f554c;
    font-size: 1.17rem;
}

/* calculator card */
.imc-card {
    margin-top: 34px;
    background: #fff;
    border: 1px solid #f0ddd5;
    border-radius: 60px;
    padding: 42px 38px;
    box-shadow: 0 24px 60px rgba(212, 141, 122, 0.14);
    animation: imcFadeUp 0.85s ease both;
    animation-delay: 0.08s;
    position: relative;
    overflow: hidden;
}

.imc-card::before {
    content: '';
    position: absolute;
    top: -90px;
    right: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(212, 141, 122, 0.12);
}

.imc-card::after {
    content: '';
    position: absolute;
    bottom: -95px;
    left: -80px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(180, 95, 77, 0.08);
}

.imc-card > * {
    position: relative;
    z-index: 2;
}

.imc-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 26px;
}

.imc-card-header h2 {
    margin: 0 0 8px;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #4d3630;
}

.imc-card-header p {
    margin: 0;
    color: #7a5e55;
    font-size: 1.05rem;
}

.imc-icon-circle {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 26px;
    background: linear-gradient(135deg, #d48d7a, #b45f4d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    box-shadow: 0 16px 34px rgba(180, 95, 77, 0.22);
    animation: imcIconFloat 3.6s ease-in-out infinite;
}

@keyframes imcIconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(3deg); }
}

.imc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.imc-field {
    display: grid;
    gap: 9px;
    color: #4d3630;
    font-weight: 700;
}

.imc-input-wrap {
    height: 62px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fef9f4;
    border: 1px solid #f0ddd5;
    border-radius: 24px;
    padding: 0 18px;
    transition: 0.2s;
}

.imc-input-wrap:focus-within {
    background: #fff;
    border-color: #d48d7a;
    box-shadow: 0 0 0 5px rgba(212, 141, 122, 0.12);
}

.imc-input-wrap input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: 'Quicksand', sans-serif;
    color: #3e2e2a;
    font-size: 1.25rem;
    font-weight: 700;
}

.imc-input-wrap span {
    color: #b45f4d;
    font-weight: 700;
}

.imc-calc-btn {
    grid-column: 1 / -1;
    height: 64px;
    border: 0;
    border-radius: 60px;
    background: #d48d7a;
    color: #fff;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 26px rgba(212, 141, 122, 0.28);
    transition: 0.25s;
}

.imc-calc-btn:hover {
    background: #b45f4d;
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(180, 95, 77, 0.34);
}

.imc-calc-btn:active {
    transform: scale(0.98);
}

/* result */
.imc-result {
    display: none;
    margin-top: 28px;
    padding: 26px;
    border-radius: 36px;
    background: linear-gradient(135deg, #fdf3ee, #fff);
    border: 1px solid #f0ddd5;
}

.imc-result.show {
    display: block;
    animation: imcResultIn 0.35s ease both;
}

@keyframes imcResultIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.imc-result-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
}

.imc-result-label {
    color: #7a5e55;
    font-weight: 700;
}

.imc-result-value {
    font-size: 4rem;
    line-height: 0.9;
    font-weight: 700;
    color: #b45f4d;
}

.imc-meter {
    position: relative;
    padding: 14px 0 20px;
}

.imc-meter-bar {
    height: 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-radius: 60px;
    overflow: hidden;
}

.zone-blue { background: #6aa9e9; }
.zone-green { background: #4caf50; }
.zone-yellow { background: #f5b342; }
.zone-red { background: #d9534f; }

.imc-pointer {
    position: absolute;
    top: 4px;
    left: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #4d3630;
    border: 4px solid #fff;
    transform: translateX(-50%);
    box-shadow: 0 8px 22px rgba(77, 54, 48, 0.25);
    transition: left 0.45s ease;
}

.imc-category {
    font-size: 1.45rem;
    font-weight: 700;
    color: #4d3630;
    margin-top: 8px;
}

.imc-description {
    margin-top: 8px;
    color: #6f554c;
    font-size: 1.02rem;
}

/* info */
.imc-info {
    margin-top: 30px;
    background: rgba(255,255,255,0.78);
    border: 1px solid #f0ddd5;
    border-radius: 50px;
    padding: 32px;
    box-shadow: 0 14px 36px rgba(212, 141, 122, 0.08);
    animation: imcFadeUp 1s ease both;
    animation-delay: 0.14s;
}

.imc-info h3 {
    margin: 0 0 20px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: #4d3630;
    font-size: 2rem;
}

.imc-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.imc-info-item {
    background: #fff;
    border: 1px solid #f0ddd5;
    border-radius: 26px;
    padding: 18px 14px;
    text-align: center;
    transition: 0.25s;
}

.imc-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(212, 141, 122, 0.10);
}

.imc-info-item strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.imc-info-item span {
    color: #6f554c;
    font-weight: 700;
    font-size: 0.95rem;
}

.imc-info-item.blue strong { color: #3c82c7; }
.imc-info-item.green strong { color: #4caf50; }
.imc-info-item.yellow strong { color: #d89119; }
.imc-info-item.red strong { color: #d9534f; }

.imc-note {
    max-width: 700px;
    margin: 20px auto 0;
    text-align: center;
    color: #7a5e55;
}

.imc-cta {
    width: fit-content;
    min-height: 60px;
    margin: 32px auto 0;
    padding: 0 34px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #d48d7a;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(212, 141, 122, 0.28);
    transition: 0.25s;
    animation: imcFadeUp 1.1s ease both;
    animation-delay: 0.2s;
}

.imc-cta:hover {
    background: #b45f4d;
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(180, 95, 77, 0.34);
}

.imc-cta i {
    transition: transform 0.25s ease;
}

.imc-cta:hover i {
    transform: translateX(5px);
}

@keyframes imcFadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .imc-form {
        grid-template-columns: 1fr;
    }

    .imc-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .imc-card-header {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .imc-header {
        border-radius: 0 0 24px 24px;
        padding: 15px 16px;
    }

    .imc-logo {
        font-size: 1.65rem;
    }

    .imc-main {
        padding: 32px 16px 60px;
    }

    .imc-hero p {
        font-size: 1rem;
    }

    .imc-card {
        border-radius: 40px;
        padding: 30px 22px;
    }

    .imc-card-header h2 {
        font-size: 1.65rem;
    }

    .imc-icon-circle {
        width: 56px;
        height: 56px;
        min-width: 56px;
        border-radius: 22px;
        font-size: 1.25rem;
    }

    .imc-result-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .imc-result-value {
        font-size: 3.2rem;
    }

    .imc-info {
        border-radius: 36px;
        padding: 26px 18px;
    }

    .imc-info-grid {
        grid-template-columns: 1fr;
    }

    .imc-cta {
        width: 100%;
        text-align: center;
    }
}

/* ===== IMC BADGE TEXT MORE PROFESSIONAL ===== */
.imc-badge {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    padding: 11px 20px !important;
}

.imc-badge i {
    font-size: 1.05rem !important;
}

