@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700;800;900&display=swap');

.csc-duty {
    width: min(1120px, calc(100% - 56px));
    margin: 74px auto 58px;
    color: #0d1b3d;
    font-family: Inter, Arial, sans-serif;
}

.csc-duty * {
    box-sizing: border-box;
}

.csc-duty-head {
    margin-bottom: 26px;
}

.csc-duty-kicker {
    margin: 0 0 8px;
    color: #0077b6;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.csc-duty h2 {
    margin: 0;
    color: #0d1b3d;
    font-family: "Barlow Condensed", Inter, sans-serif;
    font-size: clamp(46px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: .95;
    text-transform: uppercase;
}

.csc-duty h2 span {
    color: #5b37d9;
}

.csc-duty-head > p:last-child {
    max-width: 740px;
    margin: 12px 0 0;
    color: #5d6c80;
    font-size: 17px;
    line-height: 1.55;
}

.csc-duty-card,
.csc-duty-result {
    border: 1px solid rgba(13, 27, 61, .08);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(13, 27, 61, .13);
}

.csc-duty-card {
    padding: 26px;
}

.csc-duty-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 26px;
}

.csc-duty-field-wide {
    grid-column: 1 / -1;
}

.csc-duty-field label {
    display: block;
    margin-bottom: 10px;
    color: #111827;
    font-size: 15px;
    font-weight: 900;
}

.csc-duty-input {
    display: grid;
    min-height: 58px;
    grid-template-columns: 62px 1fr;
    overflow: hidden;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(13, 27, 61, .04);
}

.csc-duty-input span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0d1b3d;
    border-right: 1px solid #d9e1ec;
    background: #f8fafc;
    font-weight: 900;
}

.csc-duty-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 16px;
    color: #111827;
    background: transparent;
    font: 600 16px/1 Inter, Arial, sans-serif;
}

.csc-duty-input input::placeholder {
    color: #8390a3;
}

.csc-duty-help {
    display: block;
    margin-top: 9px;
    color: #5b37d9;
    font-size: 13px;
    font-weight: 600;
}

.csc-duty-error {
    display: block;
    min-height: 18px;
    margin-top: 7px;
    color: #e63946;
    font-size: 12px;
    font-weight: 700;
}

.csc-duty-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1.3fr .55fr .85fr;
    gap: 14px;
}

.csc-duty-actions button {
    min-height: 56px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: 900 14px/1 Inter, Arial, sans-serif;
    text-transform: uppercase;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.csc-duty-actions button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.csc-duty-primary {
    color: #fff;
    background: linear-gradient(135deg, #0d1b3d, #0077b6 55%, #5b37d9);
    box-shadow: 0 14px 28px rgba(13, 27, 61, .22);
}

.csc-duty-secondary {
    color: #0d1b3d;
    border: 1px solid #cad4e2 !important;
    background: #fff;
}

.csc-duty-whatsapp {
    color: #fff;
    background: #128c7e;
}

.csc-duty-whatsapp:disabled {
    cursor: not-allowed;
    opacity: .46;
}

.csc-duty-result {
    margin-top: 28px;
    padding: 28px;
    background: linear-gradient(180deg, #fff, #f7f5ff);
}

.csc-duty-result[hidden] {
    display: none;
}

.csc-duty-result-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding-bottom: 22px;
    border-bottom: 1px dashed #ccd6e3;
}

.csc-duty-result h3 {
    margin: 0;
    color: #0d1b3d;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 900;
}

.csc-duty-result-top span {
    display: block;
    margin-top: 8px;
    color: #5d6c80;
    font-size: 14px;
    font-weight: 700;
}

.csc-duty-result-top strong {
    color: #5b37d9;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.csc-duty-message {
    margin: 18px 0 0;
    padding: 12px 14px;
    color: #0d1b3d;
    border-left: 4px solid #e63946;
    border-radius: 8px;
    background: #fff7f8;
    font-size: 13px;
    font-weight: 700;
}

.csc-duty-message:empty {
    display: none;
}

.csc-duty-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 34px;
    margin: 22px 0 0;
}

.csc-duty-breakdown div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(13, 27, 61, .08);
}

.csc-duty-breakdown dt {
    color: #29374f;
    font-size: 15px;
    font-weight: 800;
}

.csc-duty-breakdown dd {
    margin: 0;
    color: #0d1b3d;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
}

.csc-duty-per-unit {
    grid-column: 1 / -1;
}

.csc-duty-disclaimer {
    margin: 22px 0 0;
    padding: 16px 18px;
    color: #5b37d9;
    border-radius: 8px;
    background: rgba(91, 55, 217, .08);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .csc-duty-form,
    .csc-duty-actions,
    .csc-duty-result-top,
    .csc-duty-breakdown {
        grid-template-columns: 1fr;
    }

    .csc-duty-result-top strong {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .csc-duty {
        width: calc(100% - 28px);
        margin: 48px auto;
    }

    .csc-duty-card,
    .csc-duty-result {
        padding: 20px;
    }

    .csc-duty-input {
        grid-template-columns: 54px 1fr;
    }
}
