.sacc-calculator {
    max-width: 980px;
    margin: 28px auto;
    font-family: inherit;
    color: #4f5f70;
}

.sacc-panel,
.sacc-result-card {
    background: #ffffff;
    border: 1px solid #dfe5ea;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 22px rgba(28, 39, 49, 0.05);
}

.sacc-panel h2,
.sacc-result-card h3 {
    margin: 0;
    color: #263342;
    line-height: 1.2;
}

.sacc-muted,
.sacc-field small {
    color: #7a8794;
}

.sacc-fieldset {
    border: 1px solid #dfe5ea;
    border-radius: 14px;
    margin: 0 0 20px;
    padding: 20px;
    background: #ffffff;
}

.sacc-fieldset legend {
    font-weight: 800;
    padding: 0 8px;
    color: #263342;
    letter-spacing: 0.02em;
}

.sacc-field {
    margin-bottom: 16px;
}

.sacc-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
    color: #263342;
}

.sacc-field label span {
    color: #f47b20;
}

.sacc-field input,
.sacc-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #dfe5ea;
    border-radius: 8px;
    font-size: 15px;
    color: #4f5f70;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sacc-field input:focus,
.sacc-field textarea:focus {
    border-color: #f47b20;
    box-shadow: 0 0 0 3px rgba(244, 123, 32, 0.14);
    outline: none;
}

.sacc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.sacc-checkbox-field {
    display: flex;
    align-items: center;
    padding-top: 8px;
}

.sacc-checkbox-field label {
    font-weight: 500;
}

.sacc-checkbox-field input {
    width: auto;
    margin-right: 8px;
}

.sacc-stop-input-row {
    display: flex;
    gap: 10px;
}

.sacc-stop-input-row input {
    flex: 1;
}

.sacc-remove-stop {
    border: 1px solid #d94d4d;
    color: #a62c2c;
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

.sacc-field-destination {
    margin-top: 16px;
}

.sacc-button {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.sacc-button-primary {
    background: #f47b20;
    color: #fff;
    box-shadow: 0 8px 18px rgba(244, 123, 32, 0.22);
}

.sacc-button-primary:hover {
    transform: translateY(-1px);
    color: #fff;
}

.sacc-button-secondary {
    background: #ffffff;
    color: #263342;
    border: 1px solid #dfe5ea;
}

.sacc-button:disabled,
.sacc-button.is-loading {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sacc-actions {
    margin: 20px 0;
}

.sacc-message {
    display: none;
    padding: 13px 15px;
    border-radius: 10px;
    margin: 14px 0;
}

.sacc-message-error {
    background: #fde8e8;
    border: 1px solid #f5b5b5;
    color: #7a1010;
}

.sacc-message-success {
    background: #e7f6ec;
    border: 1px solid #a8d7b6;
    color: #155724;
}

.sacc-message-warning {
    background: #fff6dd;
    border: 1px solid #ffe0a3;
    color: #6b4a00;
}

.sacc-estimate-result {
    margin: 24px 0;
}

.sacc-result-card {
    overflow: hidden;
}

.sacc-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.sacc-eyebrow {
    display: inline-block;
    color: #f47b20;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}

.sacc-total-badge {
    background: #f47b20;
    color: #ffffff;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900;
    white-space: nowrap;
}

.sacc-result-card h4 {
    margin: 18px 0 8px;
    color: #263342;
}

.sacc-route-list {
    margin: 0 0 18px 0;
    padding-left: 22px;
    color: #4f5f70;
}

.sacc-route-list li {
    margin-bottom: 5px;
}

.sacc-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.sacc-result-row {
    background: #ffffff;
    border: 1px solid #dfe5ea;
    border-radius: 12px;
    padding: 14px 16px;
}

.sacc-result-row span {
    display: block;
    color: #7a8794;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
}

.sacc-result-row strong {
    display: block;
    color: #263342;
    font-size: 18px;
    font-weight: 800;
}

.sacc-result-row-full {
    grid-column: 1 / -1;
}

.sacc-mini-list {
    margin: 0;
    padding-left: 18px;
}

.sacc-result-total {
    margin-top: 16px;
    background: #263342;
    color: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.sacc-result-total span {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.sacc-result-total strong {
    font-size: 24px;
    font-weight: 900;
}

.sacc-disclaimer {
    background: #ffffff;
    border: 1px solid #dfe5ea;
    border-left: 4px solid #f47b20;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 16px;
    color: #4f5f70;
}

.sacc-captcha-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sacc-captcha-question {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    background: #fff3ea;
    color: #263342;
    font-weight: 800;
    white-space: nowrap;
}

.sacc-captcha-row input {
    max-width: 160px;
}

.sacc-alert {
    padding: 12px;
    border-radius: 8px;
    margin: 14px 0;
}

.sacc-alert-error {
    background: #fde8e8;
    border: 1px solid #f5b5b5;
    color: #7a1010;
}

@media (max-width: 700px) {
    .sacc-panel,
    .sacc-result-card {
        padding: 20px;
    }

    .sacc-grid-2,
    .sacc-result-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sacc-stop-input-row,
    .sacc-captcha-row,
    .sacc-result-header,
    .sacc-result-total {
        flex-direction: column;
        align-items: stretch;
    }

    .sacc-captcha-row input {
        max-width: 100%;
    }

    .sacc-total-badge {
        text-align: center;
    }
}

/* v1.0.6 frontend cleanup */
.sacc-care-note,
.sacc-service-note {
    background: #fff6ef;
    border: 1px solid #ffe0c2;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 16px 0 20px;
    color: #263342;
    line-height: 1.55;
}

.sacc-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #dfe5ea;
    border-radius: 8px;
    font-size: 15px;
    color: #4f5f70;
    background: #ffffff;
}

.sacc-field select:focus {
    border-color: #f47b20;
    box-shadow: 0 0 0 3px rgba(244, 123, 32, 0.14);
    outline: none;
}

.sacc-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.sacc-result-header-simple {
    align-items: center;
    margin-bottom: 12px;
}

.sacc-result-section {
    background: #ffffff;
    border: 1px solid #dfe5ea;
    border-radius: 14px;
    padding: 18px;
    margin: 18px 0;
}

.sacc-result-section h4,
.sacc-cost-breakdown h4 {
    margin: 0 0 12px;
    color: #263342;
}

.sacc-route-note {
    margin: 10px 0 0;
    color: #7a8794;
}

.sacc-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.sacc-summary-item {
    background: #ffffff;
    border: 1px solid #dfe5ea;
    border-radius: 14px;
    padding: 16px;
}

.sacc-summary-item span,
.sacc-cost-row span,
.sacc-cost-detail span {
    display: block;
    color: #7a8794;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.sacc-summary-item strong {
    display: block;
    color: #263342;
    font-size: 20px;
    font-weight: 900;
}

.sacc-cost-breakdown {
    border: 1px solid #dfe5ea;
    border-radius: 14px;
    padding: 18px;
    background: #ffffff;
    margin-top: 18px;
}

.sacc-cost-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    border-bottom: 1px solid #edf0f3;
    padding: 12px 0;
}

.sacc-cost-row:last-child {
    border-bottom: 0;
}

.sacc-cost-row strong {
    color: #263342;
    font-size: 18px;
    font-weight: 900;
    text-align: right;
}

.sacc-cost-row-total {
    margin-top: 10px;
    padding: 18px 20px;
    border: 0;
    border-radius: 14px;
    background: #263342;
    color: #ffffff;
}

.sacc-cost-row-total span,
.sacc-cost-row-total strong {
    color: #ffffff;
}

.sacc-cost-row-total strong {
    color: #f47b20;
    font-size: 28px;
}

.sacc-cost-detail {
    padding: 12px 0;
    border-bottom: 1px solid #edf0f3;
}

.sacc-recaptcha-box {
    min-height: 78px;
}

@media (max-width: 700px) {
    .sacc-summary-strip {
        grid-template-columns: 1fr;
    }

    .sacc-cost-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .sacc-cost-row strong {
        text-align: left;
    }
}


/* v1.0.7 route map and cleaner line-box UI */
.sacc-panel,
.sacc-result-card,
.sacc-fieldset,
.sacc-result-section,
.sacc-summary-item,
.sacc-cost-breakdown,
.sacc-disclaimer,
.sacc-care-note-footer {
    background: #ffffff;
}

.sacc-result-section,
.sacc-summary-item,
.sacc-cost-breakdown {
    border-color: #dfe5ea;
}

.sacc-route-map {
    width: 100%;
    height: 360px;
    border: 1px solid #dfe5ea;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.sacc-map-error {
    border: 1px solid #dfe5ea;
    border-radius: 14px;
    padding: 16px;
    color: #7a8794;
    background: #ffffff;
}

.sacc-care-note-footer {
    margin-top: 16px;
}

@media (max-width: 700px) {
    .sacc-route-map {
        height: 280px;
    }
}

.sacc-recaptcha-loading,
.sacc-recaptcha-error {
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
}

.sacc-recaptcha-error {
    border-color: #c0392b;
}
