
:root {
  --secondary-color: #cf0b55;
  --secondary-color-gn: #68B42D;
  --warning-color: #a66b00;
  --font-family: 'Poppins', 'Segoe UI', sans-serif;
  
}

body {
    font-family: var(--font-family);
}

h1, h2, h3, h4, h5, h6, .btn, .form-label {
    font-family: var(--font-family);
}

.form-label {
    display: block;
    font-weight: 700;
}

.mowa-form-select,
select.mowa-form-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 5.5L8 10.5L13 5.5' fill='none' stroke='%23cf0b55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
    border: 1px solid var(--secondary-color);
    border-radius: 10px;
    color: #2b2b2b;
    padding: 0.7rem 2.8rem 0.7rem 0.8rem;
    font-family: var(--font-family);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mowa-form-select:focus,
select.mowa-form-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(207, 11, 85, 0.12);
}

.mowa-form-select::-ms-expand,
select.mowa-form-select::-ms-expand {
    display: none;
}

.alert {
    text-align: center;
    border-radius: 14px;
    border-width: 1px;
    border-style: solid;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    padding: 1.2rem 1.3rem;
}

.alert.alert-success {
    background-color: #edf9f1;
    border-color: #6aa977;
    color: #1d4d2b;
}

.alert.alert-success h3 {
    color: #1d4d2b;
    margin-bottom: 0.5rem;
}

.alert.alert-danger {
    background-color: #fff1f2;
    border-color: #d46a72;
    color: #7a1f2b;
}

.alert.alert-danger h3 {
    color: #7a1f2b;
    margin-bottom: 0.5rem;
}

.result-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.result-hero-success {
    background: linear-gradient(135deg, #edf9f1 0%, #f5fff7 100%);
    border-color: #6aa977;
}

.result-hero-warning {
    background: linear-gradient(135deg, #fff4cc 0%, #fffaf0 100%);
    border-color: var(--warning-color);
}

.result-hero-danger {
    background: linear-gradient(135deg, #fff1f2 0%, #fff9fa 100%);
    border-color: #d46a72;
}

.result-hero-content {
    flex: 1;
    text-align: left;
}

.result-hero-content h3 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.6rem, 2vw, 2.1rem);
    font-weight: 700;
    color: #1f1f1f;
}

.result-hero-content p {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #2d2d2d;
}

.result-hero-image-wrap {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-hero-image {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
}

.result-hero-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 1rem;
}

.mowa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    background: transparent;
    border-radius: 999px;
    padding: 10px 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: bold;
}

.mowa-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.mowa-btn-gn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color-gn);
    border: 2px solid var(--secondary-color-gn);
    background: transparent;
    border-radius: 999px;
    padding: 10px 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: bold;
}

.mowa-btn-gn:hover {
    background: var(--secondary-color-gn);
    color: white;
}

.mowa-btn-yellow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--warning-color);
    border: 2px solid var(--warning-color);
    background: transparent;
    border-radius: 999px;
    padding: 10px 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: bold;
}

.mowa-btn-yellow:hover {
    background: var(--warning-color);
    color: #fff;
}

.card-header {
    min-height: 72px;
    overflow: hidden;
}

.header-inner {
    width: 100%;
    min-height: 72px;
    display: grid;
    grid-template-columns: 56px 1fr 72px;
    align-items: center;
    gap: 8px;
}

.lang-select-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
}

.lang-select {
    width: 50px;
    min-width: 50px;
    height: 30px;
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: 4px 6px;
    line-height: 1;
}

.lang-select option {
    color: #000;
}

.mowa-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.18);
    text-decoration: none;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    justify-self: start;
}

.mowa-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.hero-banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem 0.5rem;
    background: linear-gradient(180deg, rgba(207, 11, 85, 0.04), rgba(207, 11, 85, 0.01));
}

.hero-image-wrap {
    flex: 0 0 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
}

.hero-content {
    flex: 1;
    text-align: left;
    color: #2b2b2b;
}

.hero-main-title {
    margin: 0 0 0.2rem;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--secondary-color);
    font-family: var(--font-family);
}

.hero-subtitle {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2b2b2b;
    font-family: var(--font-family);
}

.hero-subtext {
    margin: 0 0 0.75rem;
    font-size: 1.02rem;
    line-height: 1.6;
    font-weight: 600;
}

.hero-benefits {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.96rem;
    line-height: 1.8;
    color: #3b3b3b;
}

.hero-benefits li::marker {
    color: var(--secondary-color);
}

.hero-benefits-result {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.96rem;
    line-height: 1.8;
    color: #3b3b3b;
}

.hero-benefits-result li::marker {
    color: var(--secondary-color-gn);
}

.hero-benefits-result-warning {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.96rem;
    line-height: 1.8;
    color: #3b3b3b;
}

.hero-benefits-result-warning li::marker {
    color: var(--warning-color);
}


.gmfcs-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.gmfcs-card {
    position: relative;
    display: flex;
    min-height: 205px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 2px solid #e4d4da;
    border-radius: 10px;
    background: #fff;
    color: #2b2b2b;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gmfcs-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.gmfcs-card:has(input:checked) {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(207, 11, 85, 0.12);
}

.gmfcs-card input {
    position: absolute;
    opacity: 0;
}

.gmfcs-card input:focus-visible + img {
    outline: 3px solid rgba(207, 11, 85, 0.35);
    outline-offset: 3px;
}

.gmfcs-card img {
    width: 100%;
    height: 105px;
    object-fit: contain;
}

.gmfcs-card strong {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.gmfcs-card span {
    font-size: 0.78rem;
    line-height: 1.35;
}

@media (max-width: 576px) {
    .result-hero {
        flex-direction: column;
        text-align: center;
        padding: 1.1rem;
    }

    .result-hero-content {
        width: 100%;
        text-align: center;
    }

    .result-hero-content p {
        font-size: 0.96rem;
    }

    .result-hero-actions {
        justify-content: center;
    }

    .result-hero-image-wrap {
        width: 100%;
        flex-basis: auto;
    }

    .result-hero-image {
        max-width: 180px;
    }

    .hero-banner {
        flex-direction: column;
        text-align: center;
        padding-top: 1rem;
    }

    .hero-image-wrap {
        flex-basis: auto;
        width: 100%;
    }

    .hero-image {
        max-width: 260px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-main-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    .hero-subtext {
        font-size: 0.96rem;
    }

    .hero-benefits, 
    .hero-benefits-result, 
    .hero-benefits-result-warning {
        text-align: left;
        padding-left: 1.2rem;
        font-size: 0.9rem;
    }

    .gmfcs-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-header {
        min-height: 88px;
        padding: 12px 8px;
    }

    .header-inner {
        position: relative;
        min-height: 64px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mowa-logo {
        position: absolute;
        left: 0;
        width: 42px;
        height: 42px;
    }

    .mowa-logo img {
        width: 30px;
        height: 30px;
    }

    .lang-select-wrap {
        position: absolute;
        right: 0;
    }

    .lang-select {
        width: 50px;
        min-width: 50px;
        height: 28px;
        font-size: 0.68rem;
        padding: 4px 5px;
    }

    .card-header h2 {
        font-size: 1.5rem;
        line-height: 1.2;
        margin: 0;
        padding: 0 52px;
        white-space: normal;
        word-break: break-word;
        text-align: center;
        display: block;
    }
}

@media (min-width: 577px) and (max-width: 1800px) {
    .gmfcs-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
