.mic-calculator {
    --mic-red: #d71920;
    --mic-ink: #15171c;
    --mic-muted: #646a76;
    --mic-line: #e8ebf0;
    --mic-panel: #ffffff;
    --mic-soft: #f6f8fb;
    --mic-green: #0f8f65;
    color: var(--mic-ink);
    font-family: inherit;
}

.mic-calculator *,
.mic-calculator *::before,
.mic-calculator *::after {
    box-sizing: border-box;
}

.mic-shell {
    border: 1px solid var(--mic-line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 18px 45px rgba(18, 24, 40, 0.08);
    overflow: hidden;
}

.mic-heading {
    padding: 28px 30px 22px;
    border-bottom: 1px solid var(--mic-line);
    background: var(--mic-panel);
}

.mic-heading__eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--mic-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mic-heading h3 {
    margin: 0;
    color: var(--mic-ink);
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0;
}

.mic-heading p {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--mic-muted);
    font-size: 15px;
    line-height: 1.6;
}

.mic-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 0;
}

.mic-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 30px;
    align-items: end;
    align-content: start;
}

.mic-field {
    min-width: 0;
}

.mic-field label {
    display: block;
    margin-bottom: 8px;
    color: #2d3340;
    font-size: 16px;
    font-weight: 700;
}

.mic-field select,
.mic-field input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    background: #ffffff;
    color: var(--mic-ink);
    font: inherit;
    font-size: 15px;
    outline: 0;
    padding: 0 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mic-field select {
    -webkit-appearance: none !important;
    appearance: none !important;
    padding-right: 44px !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7.5L10 12L14.5 7.5' stroke='%23646A76' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 20px 20px !important;
}

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

.mic-field select:focus,
.mic-field input:focus {
    border-color: var(--mic-red);
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.12);
}

.mic-field input[readonly] {
    color: #0d9c13;
    cursor: default;
    font-weight: 600;
    font-size: 16px;
}

.mic-input-suffix {
    position: relative;
}

.mic-input-suffix input {
    padding-right: 44px;
}

.mic-input-suffix span {
    position: absolute;
    top: 50%;
    right: 14px;
    color: var(--mic-muted);
    font-weight: 700;
    transform: translateY(-50%);
}

.mic-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
}

.mic-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 180px;
    border: 0;
    border-radius: 6px;
    background: var(--mic-red);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    padding: 0 24px;
    text-decoration: none;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    margin: 0;
    text-transform: uppercase;
}

.mic-submit:hover,
.mic-submit:focus {
    background: #b91219;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(215, 25, 32, 0.24);
}

.mic-submit:focus {
    outline: 0;
}

.mic-submit:active {
    transform: translateY(1px);
}

.mic-results {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: calc(100% - 60px);
    margin: 30px 30px 30px 0;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #10131a;
    color: #ffffff;
}

.mic-results--hidden {
    display: none;
}

.mic-results--visible {
    animation: mic-results-in 0.28s ease both;
}

.mic-results__title {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0;
}

@keyframes mic-results-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mic-results__top {
    margin-top: 22px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(215, 25, 32, 0.98), rgba(172, 18, 30, 0.96));
    text-align: center;
}

.mic-results__top span {
    display: block;
    color: rgb(255 255 255);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.mic-results__top small {
    display: block;
    margin-top: 2px;
    margin-bottom: 8px;
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
}

.mic-results__top strong {
    display: block;
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.1;
    letter-spacing: normal;
}

.mic-results__list {
    margin: 10px 0 0;
}

.mic-results__list div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mic-results__list dt,
.mic-results__list dd {
    margin: 0;
    text-transform: capitalize;
}

.mic-results__list dt {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.45;
}

.mic-results__list dd {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    text-align: right;
    text-transform: none;
}

.mic-note,
.mic-empty {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
    line-height: 1.55;
}

.mic-empty {
    margin: 0;
    padding: 16px;
    border: 1px solid #f0d5d7;
    border-radius: 6px;
    background: #fff6f6;
    color: #9b1c24;
}

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

    .mic-results {
        margin: 0 30px 30px;
    }
}

@media (max-width: 640px) {
    .mic-heading,
    .mic-form,
    .mic-results {
        padding: 22px;
    }

    .mic-heading h3 {
        font-size: 23px;
    }

    .mic-form {
        grid-template-columns: 1fr;
    }

    .mic-results {
        margin: 0 22px 22px;
    }

    .mic-results__list div {
        align-items: center;
    }

    .mic-results__list dd {
        margin-top: 5px;
        text-align: left;
    }
}
