/* =========================================================
   PEPTIQO DOSAGE CALCULATOR
   File: peptiqo-calculator.css
   ========================================================= */


/* =========================================================
   ROOT / RESET
   ========================================================= */

#peptiqo-calculator {
    --pq-blue: #0874e8;
    --pq-blue-dark: #0664c9;
    --pq-blue-light: #eef7ff;
    --pq-blue-soft: #f5faff;

    --pq-text: #172033;
    --pq-text-soft: #667085;
    --pq-text-light: #8a94a6;

    --pq-border: #dfe5ec;
    --pq-border-light: #e9edf2;

    --pq-bg: #f6f8fb;
    --pq-white: #ffffff;

    --pq-success: #168a55;
    --pq-success-bg: #eefbf5;
    --pq-success-border: #bfe8d2;

    --pq-error: #c62828;
    --pq-error-bg: #fff2f2;
    --pq-error-border: #f0b8b8;

    --pq-radius: 12px;
    --pq-radius-lg: 16px;

    --pq-shadow:
        0 1px 2px rgba(16, 24, 40, 0.04),
        0 8px 24px rgba(16, 24, 40, 0.06);

    width: 100%;
    color: var(--pq-text);
    background: var(--pq-white);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    box-sizing: border-box;
}

#peptiqo-calculator *,
#peptiqo-calculator *::before,
#peptiqo-calculator *::after {
    box-sizing: border-box;
}


/* =========================================================
   CONTAINER
   ========================================================= */

#peptiqo-calculator .pq-container {
    width: 100% !important;
    margin: 0 auto;
    padding: 0 40px !important
}


/* =========================================================
   HERO
   ========================================================= */

#peptiqo-calculator .pq-hero {
    background:
        radial-gradient(
            circle at 50% -40%,
            rgba(8, 116, 232, 0.12),
            transparent 118%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbff 100%
        );

    /* border-bottom: 1px solid #edf1f5; */
    border-radius: 15px !important;
}

#peptiqo-calculator .pq-hero-inner {
    /* max-width: 760px; */
    margin: 0 auto;
    padding: 48px 0 !important;
    text-align: left;
}

#peptiqo-calculator .pq-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;
    padding: 7px 13px;

    border: 1px solid #cfe5fb;
    border-radius: 999px;

    background: #f0f8ff;
    color: var(--pq-blue);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
}

#peptiqo-calculator .pq-title {
    margin: 0;

    /* color: #111827; */

    font-size: 30px !important;
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

#peptiqo-calculator .pq-intro {
    max-width: 680px;
    margin-top: 20px !important;

    color: var(--pq-text-soft);

    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}


/* =========================================================
   MAIN AREA
   ========================================================= */

#peptiqo-calculator .pq-main {
    padding: 54px 0 60px;
    /* background: var(--pq-bg); */
}


/* =========================================================
   TWO COLUMN GRID
   ========================================================= */

#peptiqo-calculator .pq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 24px;
    align-items: stretch;
}


/* =========================================================
   PANELS
   ========================================================= */

#peptiqo-calculator .pq-panel {
    min-width: 0;
    padding: 28px;
    background: var(--pq-white);
    border: 1px solid var(--pq-border);
    border-radius: 10px;
    box-shadow: var(--pq-shadow);
}

#peptiqo-calculator .pq-results-panel {
    display: flex;
    flex-direction: column;
}


/* =========================================================
   PANEL HEADINGS
   ========================================================= */

#peptiqo-calculator .pq-panel-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    margin-bottom: 25px;
}

#peptiqo-calculator .pq-heading-icon {
    display: flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: var(--pq-blue-light);
    color: var(--pq-blue);

    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

#peptiqo-calculator .pq-panel-heading h2 {
    margin: 0 0 5px;

    color: #111827;

    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

#peptiqo-calculator .pq-panel-heading p {
    margin: 0;

    color: var(--pq-text-soft);

    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   ERROR MESSAGE
   ========================================================= */

#peptiqo-calculator .pq-error {
    display: none;

    margin: 0 0 20px;
    padding: 12px 14px;

    border: 1px solid var(--pq-error-border);
    border-radius: 8px;

    background: var(--pq-error-bg);
    color: var(--pq-error);

    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
}


/* =========================================================
   FORM FIELDS
   ========================================================= */

#peptiqo-calculator .pq-field {
    margin-bottom: 19px;
}

#peptiqo-calculator .pq-field > label {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 8px;

    color: #344054;

    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
}

#peptiqo-calculator .pq-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 17px;
    height: 17px;

    border: 1px solid #cfd7e3;
    border-radius: 50%;

    color: #7d899a;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;

    cursor: help;
}


/* =========================================================
   INPUTS / SELECTS
   ========================================================= */

#peptiqo-calculator input,
#peptiqo-calculator select {
    width: 100%;
    height: 46px;

    margin: 0;
    padding: 0 13px;

    border: 1px solid #d7dee7;
    border-radius: 8px;

    outline: none;

    background-color: #ffffff;
    color: #273142;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

#peptiqo-calculator select {
    cursor: pointer;
}

#peptiqo-calculator input:hover,
#peptiqo-calculator select:hover {
    border-color: #bcc7d5;
}

#peptiqo-calculator input:focus,
#peptiqo-calculator select:focus {
    border-color: var(--pq-blue);

    box-shadow:
        0 0 0 3px rgba(8, 116, 232, 0.10);
}

#peptiqo-calculator input::placeholder {
    color: #a2aab7;
    opacity: 1;
}

#peptiqo-calculator input[readonly] {
    background: #f8fafc;
    color: #667085;
    cursor: default;
}


/* =========================================================
   PRODUCT SELECT
   ========================================================= */

#peptiqo-calculator .pq-product-select {
    position: relative;
}

#peptiqo-calculator .pq-product-select .pq-vial-icon {
    position: absolute;
    z-index: 2;

    top: 50%;
    left: 13px;

    transform: translateY(-50%);

    font-size: 16px;
    line-height: 1;

    pointer-events: none;
}

#peptiqo-calculator .pq-product-select select {
    padding-left: 41px;
}


/* =========================================================
   INPUT + UNIT
   ========================================================= */

#peptiqo-calculator .pq-input-unit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 105px;
}

#peptiqo-calculator .pq-input-unit input {
    position: relative;
    z-index: 1;

    border-radius: 8px 0 0 8px;
}

#peptiqo-calculator .pq-input-unit select {
    margin-left: -1px;

    border-radius: 0 8px 8px 0;

    background-color: #f8fafc;

    text-align: center;
}

#peptiqo-calculator .pq-input-unit input:focus {
    z-index: 2;
}

#peptiqo-calculator .pq-input-unit select:focus {
    position: relative;
    z-index: 2;
}


/* =========================================================
   ACTION BUTTONS
   ========================================================= */

#peptiqo-calculator .pq-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;

    margin-top: 26px;
}

#peptiqo-calculator .pq-btn {
    min-height: 46px;

    padding: 0 20px;

    border-radius: 8px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.1s ease;
}

#peptiqo-calculator .pq-btn:active {
    transform: translateY(1px);
}

#peptiqo-calculator .pq-btn-primary {
    border: 1px solid var(--pq-blue);
    background: var(--pq-blue);
    color: #ffffff;

    box-shadow:
        0 4px 10px rgba(8, 116, 232, 0.18);
}

#peptiqo-calculator .pq-btn-primary:hover {
    border-color: var(--pq-blue-dark);
    background: var(--pq-blue-dark);
}

#peptiqo-calculator .pq-btn-secondary {
    border: 1px solid #d7dee7;
    background: #ffffff;
    color: #475467;
}

#peptiqo-calculator .pq-btn-secondary:hover {
    border-color: #bcc7d5;
    background: #f8fafc;
}


/* =========================================================
   RESULTS GRID
   ========================================================= */

#peptiqo-calculator .pq-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    margin-bottom: 17px;
}

#peptiqo-calculator .pq-result-card {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    min-width: 0;
    min-height: 118px;

    padding: 18px;

    border: 1px solid var(--pq-border-light);
    border-radius: 10px;

    background: #fbfcfe;
}

#peptiqo-calculator .pq-result-icon {
    display: flex;
    flex: 0 0 31px;

    width: 31px;
    height: 31px;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: var(--pq-blue-light);
    color: var(--pq-blue);

    font-size: 15px;
    font-weight: 700;
}

#peptiqo-calculator .pq-result-card > div:last-child {
    min-width: 0;
}

#peptiqo-calculator .pq-result-label {
    display: block;
    margin-bottom: 6px;
    color: var(--pq-text-soft);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    font-family: 'Inter Regular' !important;
}

#peptiqo-calculator .pq-result-value {
    display: block;

    margin-bottom: 4px;

    color: #101828;

    font-size: 17px;
    font-weight: 750;
    letter-spacing: -0.015em;
    line-height: 1.3;

    overflow-wrap: anywhere;
}

#peptiqo-calculator .pq-result-sub {
    display: block;

    color: #8a94a6;

    font-size: 10.5px;
    line-height: 1.45;
}


/* =========================================================
   STATUS / CALCULATION COMPLETE
   ========================================================= */

#peptiqo-calculator .pq-status {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 2px;
    padding: 16px;

    border: 1px solid var(--pq-success-border);
    border-radius: 10px;

    background: var(--pq-success-bg);
}

#peptiqo-calculator .pq-status-icon {
    display: flex;
    flex: 0 0 29px;

    width: 29px;
    height: 29px;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #d9f5e7;
    color: var(--pq-success);

    font-size: 14px;
    font-weight: 800;
}

#peptiqo-calculator .pq-status > div:last-child {
    min-width: 0;
}

#peptiqo-calculator .pq-status strong {
    display: block;

    margin: 1px 0 4px;

    color: #166a46;

    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.4;
}

#peptiqo-calculator .pq-status span {
    display: block;

    color: #47705e;

    font-size: 11px;
    line-height: 1.55;
}


/* =========================================================
   IMPORTANT NOTES
   ========================================================= */

#peptiqo-calculator .pq-notes {
    margin-top: 18px;
    padding: 17px 18px;

    border: 1px solid var(--pq-border-light);
    border-radius: 10px;

    background: #ffffff;
}

#peptiqo-calculator .pq-notes-title {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 10px;

    color: #344054;

    font-size: 12px;
    font-weight: 750;
}

#peptiqo-calculator .pq-notes ul {
    margin: 0;
    padding-left: 18px;

    color: #667085;

    font-size: 10.5px;
    line-height: 1.65;
}

#peptiqo-calculator .pq-notes li {
    margin: 3px 0;
}


/* =========================================================
   FEATURES
   ========================================================= */

#peptiqo-calculator .pq-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;

    margin-top: 48px;
}

#peptiqo-calculator .pq-feature {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    min-width: 0;
    padding: 16px;

    border: 1px solid var(--pq-border);
    border-radius: 10px;

    background: #ffffff;
}

#peptiqo-calculator .pq-feature-icon {
    display: flex;
    flex: 0 0 31px;

    width: 31px;
    height: 31px;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--pq-blue-light);
    color: var(--pq-blue);

    font-size: 15px;
    font-weight: 100;
}

#peptiqo-calculator .pq-feature > div:last-child {
    min-width: 0;
}

#peptiqo-calculator .pq-feature strong {
    display: block;

    margin-bottom: 3px;

    color: #344054;

    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
    font-family: 'Inter Regular' !important;
}

#peptiqo-calculator .pq-feature span {
    display: block;

    color: #666 ;

    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    #peptiqo-calculator .pq-grid {
        grid-template-columns: 1fr;
    }

    #peptiqo-calculator .pq-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    #peptiqo-calculator .pq-container {
        width: min(100% - 24px, 1180px);
    }

    #peptiqo-calculator .pq-hero-inner {
        padding: 52px 8px 58px;
    }

    #peptiqo-calculator .pq-title {
        font-size: 34px;
    }

    #peptiqo-calculator .pq-intro {
        font-size: 14px;
        line-height: 1.65;
    }

    #peptiqo-calculator .pq-main {
        padding: 30px 0 40px;
    }

    #peptiqo-calculator .pq-panel {
        padding: 20px;
        border-radius: 13px;
    }

    #peptiqo-calculator .pq-result-grid {
        grid-template-columns: 1fr;
    }

    #peptiqo-calculator .pq-result-card {
        min-height: 100px;
    }

    #peptiqo-calculator .pq-actions {
        grid-template-columns: 1fr;
    }

    #peptiqo-calculator .pq-btn {
        width: 100%;
    }

    #peptiqo-calculator .pq-features {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    #peptiqo-calculator .pq-panel {
        padding: 17px;
    }

    #peptiqo-calculator .pq-input-unit {
        grid-template-columns: minmax(0, 1fr) 88px;
    }

    #peptiqo-calculator .pq-heading-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

}
