:root {
    --primary: #009fdf;
    --primary-hover: #007db3;

    --secondary: #488f24;
    --secondary-hover: #3a7a1c;

    --background: #f1f5f9;
    --surface: #ffffff;

    --text: #1e293b;
    --text-light: #64748b;

    --border: #e2e8f0;

    --shadow:
        0 10px 30px rgba(15, 23, 42, 0.08);
}

.mod-mcm *  {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.mod-mcm {
    font-family:
        Inter,
        "Segoe UI",
        system-ui,
        sans-serif;

    background: var(--background);
    color: var(--text);

    max-width: 950px;
    margin: auto;
    padding: 40px 20px;

    line-height: 1.6;
}

/* HEADER */

.mod-mcm h1 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -1px;
}

.mod-mcm > p {
    text-align: center;
    color: var(--text-light);
    max-width: 750px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
}

/* SELECTORS */

.mod-mcm .selector-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mod-mcm .selector {
    width: 100%;
    padding: 16px 18px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--surface);
    color: var(--text);

    font-size: 1rem;
    font-weight: 500;

    cursor: pointer;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

.mod-mcm .selector:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.mod-mcm .selector:focus {
    outline: none;
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(0, 159, 223, 0.15);
}

/* RESULT CARD */

.mod-mcm #resultContainer {
    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 24px;

    padding: 32px;

    box-shadow: var(--shadow);

    opacity: 0;
    transform: translateY(15px);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.mod-mcm #resultContainer.visible {
    opacity: 1;
    transform: translateY(0);
}

.mod-mcm #resultContainer h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.mod-mcm #resultContainer h3 {
    margin-top: 30px;
    margin-bottom: 12px;

    color: var(--secondary);
    font-size: 1.2rem;
}

.mod-mcm #errorDescription,
.mod-mcm #errorSolution {
    color: var(--text-light);
    font-size: 1.02rem;
}

.mod-mcm .error-code {
    color: var(--primary);
    font-weight: 800;
}

/* FOOTER */

.mod-mcm footer {
    margin-top: 40px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

.mod-mcm footer a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.mod-mcm footer a:hover {
    color: var(--secondary-hover);
}

/* MOBILE */

@media (max-width: 640px) {
    .mod-mcm {
        padding: 25px 15px;
    }

    .mod-mcm #resultContainer {
        padding: 24px;
    }

    .mod-mcm .selector {
        padding: 14px 16px;
    }
}
