/* AvePoint Fly calculator
   Font/size correction to match the original calculator.
   Explicit typography prevents the WordPress theme from enlarging the calculator.
*/

.avepoint-calc {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #d8e1ed;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 48px -30px rgba(11,31,58,.30);
    color: #0b1f3a;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.avepoint-calc *,
.avepoint-calc *::before,
.avepoint-calc *::after {
    box-sizing: border-box;
    font-family: inherit;
}

.avepoint-calc-head {
    background: #0b1f3a;
    color: #fff;
    padding: 22px 34px 24px;
}

.avepoint-calc-head h3 {
    margin: 0 0 5px;
    color: #fff;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;
}

.avepoint-calc-head p {
    margin: 0;
    color: #b9cbea;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;
}

.avepoint-calc-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 32px;
    row-gap: 0;
    padding: 28px 34px 24px;
    align-items: start;
}

.avepoint-calc-inputs > label {
    display: block;
    margin: 0 0 7px;
    color: #0b1f3a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.avepoint-calc-inputs input[type="number"] {
    display: block;
    width: 100%;
    height: 47px;
    margin: 0 0 20px;
    padding: 0 12px;
    border: 1px solid #d5e0ee;
    border-radius: 9px;
    background: #fff;
    color: #0b1f3a;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 47px;
    font-weight: 400;
    outline: none;
    box-shadow: none;
}

.avepoint-calc-inputs input[type="number"]:focus {
    border-color: #8ca7c8;
    box-shadow: 0 0 0 3px rgba(21,79,166,.08);
}

.avepoint-toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid #d7e2ef;
    border-radius: 9px;
    background: #fafbfd;
    cursor: pointer;
}

.avepoint-toggle-row input[type="checkbox"] {
    width: 14px;
    height: 14px;
    min-width: 14px;
    margin: 2px 0 0;
    accent-color: #1677f2;
    cursor: pointer;
}

.avepoint-t-label {
    margin: 0;
    color: #0b1f3a;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.avepoint-t-sub {
    margin-top: 2px;
    color: #7285a3;
    font-size: 12.5px;
    line-height: 1.4;
    font-weight: 400;
}

.avepoint-results {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.avepoint-result-card {
    width: 100%;
    border-radius: 13px;
    padding: 18px 22px;
}

.avepoint-mw-card {
    border: 1.5px solid #12836b;
    background: #e8f5f1;
}

.avepoint-result-card h4 {
    margin: 0 0 12px;
    color: #0b1f3a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.avepoint-result-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 3px 0;
    color: #17365c;
    font-size: 13.5px;
    line-height: 1.4;
    font-weight: 400;
}

.avepoint-result-line > span:last-child {
    flex: 0 0 auto;
    white-space: nowrap;
}

.avepoint-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.avepoint-result-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 11px;
    padding-top: 12px;
    border-top: 1px dashed rgba(11,31,58,.18);
    color: #17365c;
    font-size: 13px;
    line-height: 1.35;
}

.avepoint-result-total strong {
    color: #071b37;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

.avepoint-locked-box {
    position: relative;
    width: 100%;
    min-height: 350px;
    padding: 27px 24px 24px;
    border: 2px dashed #c56a13;
    border-radius: 13px;
    background: repeating-linear-gradient(
        135deg,
        #fff2df 0,
        #fff2df 10px,
        #ffecd5 10px,
        #ffecd5 20px
    );
    text-align: center;
}

.avepoint-lock-icon {
    margin: 0 0 10px;
    font-size: 25px;
    line-height: 1;
}

.avepoint-warning {
    max-width: 475px;
    margin: 0 auto 14px;
    padding: 11px 15px;
    border-radius: 7px;
    background: #fff;
    color: #96520f;
    font-size: 13.5px;
    line-height: 1.4;
    font-weight: 700;
}

.avepoint-locked-title {
    margin-top: 4px;
    color: #0b1f3a;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.avepoint-locked-copy {
    max-width: 430px;
    margin: 5px auto 16px;
    color: #5f5140;
    font-size: 13.5px;
    line-height: 1.45;
    font-weight: 400;
}

.avepoint-sales-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    background: #0b1f3a;
    color: #fff !important;
    font-size: 13.5px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none !important;
}

.avepoint-sales-button:hover,
.avepoint-sales-button:focus {
    background: #163d69;
    color: #fff !important;
}

.avepoint-verdict {
    width: 100%;
    padding: 15px 18px;
    border-radius: 12px;
    background: #0b1f3a;
    color: #fff;
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
}

.avepoint-verdict strong {
    color: #61e0bd;
}

.avepoint-verdict a {
    color: #8fc1ff !important;
    text-decoration: none !important;
}

.avepoint-footnote {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 25px;
    padding: 0;
    color: #7c8ca6;
    font-size: 12.5px;
    line-height: 1.5;
    font-weight: 400;
}

.avepoint-footnote a {
    color: #154fa6;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 900px) {
    .avepoint-calc-body {
        grid-template-columns: 1fr;
        row-gap: 24px;
        padding: 24px;
    }

    .avepoint-footnote {
        grid-column: 1;
        margin-top: 0;
    }

    .avepoint-locked-box {
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .avepoint-calc-head {
        padding: 20px;
    }

    .avepoint-calc-head h3 {
        font-size: 19px;
    }

    .avepoint-calc-body {
        padding: 20px;
    }

    .avepoint-result-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .avepoint-result-total strong {
        font-size: 23px;
    }
}
