/*
 * Qanoon Markaz
 * Age & Job Eligibility Calculator
 */


/* =========================================================
   MAIN PAGE
========================================================= */

.qm-age-calculator-page {
    width: 100%;
    box-sizing: border-box;
    color: #222;
    font-family: inherit;
}

.qm-age-calculator-page *,
.qm-age-calculator-page *::before,
.qm-age-calculator-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   ADVERTISEMENT
========================================================= */

.qm-age-ad-box {
    width: 100%;
    min-height: 200px;
    margin: 0 auto 25px;
    padding: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e5e5e5;
    background: #fafafa;

    color: #888;
    font-size: 13px;
    text-align: center;
}

.qm-age-ad-box span {
    display: block;
}

.qm-age-middle-ad {
    margin-top: 30px;
    margin-bottom: 30px;
}


/* =========================================================
   CALCULATOR CONTAINER
========================================================= */

.qm-age-calculator-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.qm-age-calculator-header {
    margin-bottom: 25px;
    text-align: center;
}

.qm-age-calculator-header h1 {
    margin: 0 0 10px;
    color: #000e36;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
}

.qm-age-calculator-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   CALCULATOR SECTIONS
========================================================= */

.qm-age-section {
    margin-bottom: 30px;
    padding: 28px;

    border: 1px solid #e1e1e1;
    border-radius: 8px;

    background: #fff;
}

.qm-age-section h2 {
    margin: 0 0 8px;
    color: #000e36;
    font-size: 24px;
    line-height: 1.3;
}

.qm-age-section-description {
    margin: 0 0 24px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   FORM GRID
========================================================= */

.qm-age-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 22px;
}

.qm-age-field {
    width: 100%;
}

.qm-age-field label {
    display: block;
    margin-bottom: 8px;

    color: #222;
    font-size: 14px;
    font-weight: 600;
}

.qm-age-field label span {
    color: #777;
    font-size: 12px;
    font-weight: 400;
}

.qm-age-field input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;

    border: 1px solid #d6d6d6;
    border-radius: 5px;

    background: #fff;
    color: #222;

    font-family: inherit;
    font-size: 16px;

    outline: none;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.qm-age-field input:focus {
    border-color: #000e36;
    box-shadow: 0 0 0 2px rgba(0, 14, 54, 0.08);
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.qm-age-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 11px 24px;

    border: 0;
    border-radius: 5px;

    background: #000e36;
    color: #fff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.qm-age-primary-button:hover {
    background: #e0a800;
    color: #000;
}

.qm-age-primary-button:active {
    transform: translateY(1px);
}


/* =========================================================
   AGE RESULT
========================================================= */

.qm-age-result,
.qm-job-result {
    display: none;

    margin-top: 25px;
    padding: 22px;

    border: 1px solid #e0a800;
    border-radius: 7px;

    background: #fffdf5;
}

.qm-age-result.is-visible,
.qm-job-result.is-visible {
    display: block;
}

.qm-age-result-title,
.qm-job-result-title {
    margin-bottom: 12px;

    color: #000e36;
    font-size: 18px;
    font-weight: 700;
}


.qm-age-exact-result {
    margin-bottom: 22px;

    color: #000e36;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.35;
}


/* =========================================================
   RESULT GRID
========================================================= */

.qm-age-result-grid,
.qm-job-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.qm-age-result-item {
    min-width: 0;
    padding: 15px;

    border: 1px solid #e4e4e4;
    border-radius: 5px;

    background: #fff;
}

.qm-age-result-label {
    display: block;
    margin-bottom: 7px;

    color: #777;
    font-size: 12px;
    line-height: 1.4;
}

.qm-age-result-item strong {
    display: block;

    color: #000e36;
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}


/* =========================================================
   JOB STATUS
========================================================= */

.qm-job-status {
    display: inline-block;

    margin-bottom: 20px;
    padding: 9px 16px;

    border-radius: 5px;

    background: #eee;
    color: #555;

    font-size: 18px;
    font-weight: 700;
}

.qm-job-status.eligible {
    background: #e8f6ed;
    color: #18743b;
}

.qm-job-status.not-eligible {
    background: #e1e3ff;
    color: #b42318;
}


.qm-job-result-message {
    margin: 18px 0 0;

    color: #555;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   INFORMATION / SEO CONTENT
========================================================= */

.qm-age-information {
    margin-top: 35px;
    padding: 5px 0 20px;
}

.qm-age-information h2 {
    margin: 0 0 15px;

    color: #000e36;
    font-size: 25px;
    line-height: 1.35;
}

.qm-age-information h3 {
    margin: 25px 0 10px;

    color: #000e36;
    font-size: 20px;
    line-height: 1.4;
}

.qm-age-information p {
    margin: 0 0 14px;

    color: #444;
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 700px) {

    .qm-age-calculator-container {
        max-width: 100%;
    }

    .qm-age-section {
        padding: 22px;
    }

    .qm-age-calculator-header h1 {
        font-size: 28px;
    }

    .qm-age-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 500px) {

    .qm-age-ad-box {
        min-height: 70px;
        margin-bottom: 20px;
    }

    .qm-age-calculator-header {
        margin-bottom: 20px;
    }

    .qm-age-calculator-header h1 {
        font-size: 24px;
    }

    .qm-age-calculator-header p {
        font-size: 14px;
    }

    .qm-age-section {
        padding: 18px;
        border-radius: 6px;
    }

    .qm-age-section h2 {
        font-size: 21px;
    }

    .qm-age-section-description {
        font-size: 13px;
    }

    .qm-age-primary-button {
        width: 100%;
    }

    .qm-age-result,
    .qm-job-result {
        padding: 17px;
    }

    .qm-age-result-grid,
    .qm-job-result-grid {
        grid-template-columns: 1fr;
    }

    .qm-age-exact-result {
        font-size: 21px;
    }

    .qm-age-information h2 {
        font-size: 22px;
    }

    .qm-age-information h3 {
        font-size: 18px;
    }

    .qm-age-information p {
        font-size: 14px;
        line-height: 1.7;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .qm-age-section {
        padding: 15px;
    }

    .qm-age-calculator-header h1 {
        font-size: 22px;
    }

    .qm-age-section h2 {
        font-size: 19px;
    }

}