/* =========================================================
   GLOBAL CERTIFIED TRANSLATIONS — PROFESSIONAL QUOTE UI
   Load after the main website stylesheet.
   ========================================================= */

:root {
    --quote-navy: #071f49;
    --quote-blue: #245bd7;
    --quote-blue-dark: #1948b5;
    --quote-ink: #142746;
    --quote-muted: #72819a;
    --quote-border: #dfe7f2;
    --quote-soft: #f5f8fd;
    --quote-green: #168553;
    --quote-radius: 16px;
    --quote-shadow: 0 10px 32px rgba(15, 42, 87, .055);
}

/* Pricing cards */
.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--quote-border);
    border-radius: var(--quote-radius);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.pricing-card:hover,
.pricing-card.is-hovered {
    transform: translateY(-5px);
    border-color: var(--quote-blue);
    box-shadow: 0 18px 46px rgba(36, 91, 215, .13);
}
.pricing-card ul { flex: 1; }
.pricing-card .btn-primary-custom,
.pricing-card .btn-outline-custom { margin-top: auto; }
.pricing-hero { padding: 76px 0 70px; }
.price-addon-panel {
    padding: 14px 28px;
    background: #fff;
    border: 1px solid var(--quote-border);
    border-radius: var(--quote-radius);
    box-shadow: var(--quote-shadow);
}

/* Page heading */
.quote-page-heading {
    padding: 42px 0 34px;
    background:
        radial-gradient(ellipse at 90% 0%, rgba(36, 91, 215, .07), transparent 35%),
        linear-gradient(135deg, #f5f8ff 0%, #fff 78%);
    border-bottom: 1px solid #e8edf5;
}
.quote-page-heading h1 {
    margin: 12px 0 10px;
    color: var(--quote-navy);
    font-size: clamp(30px, 3.2vw, 43px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.35px;
}
.quote-page-heading > .container-custom > p {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--quote-muted);
    font-size: 13px;
    line-height: 1.85;
}
.quote-step-kicker {
    color: var(--quote-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.45px;
}
.breadcrumb-custom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: #8b99ae;
    font-size: 10px;
}
.breadcrumb-custom a { color: #667995; text-decoration: none; }
.breadcrumb-custom a:hover { color: var(--quote-blue); }

/* Progress steps */
.quote-progress-steps {
    display: flex;
    align-items: center;
    width: min(100%, 620px);
    margin-top: 28px;
}
.quote-step {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 82px;
    color: var(--quote-muted);
}
.quote-step > span {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border: 1px solid #d7e0ef;
    border-radius: 50%;
    background: #fff;
    color: #8290a5;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(10, 35, 75, .035);
}
.quote-step small { font-size: 10px; white-space: nowrap; }
.quote-step.is-active > span,
.quote-step.is-done > span {
    color: #fff;
    background: var(--quote-blue);
    border-color: var(--quote-blue);
    box-shadow: 0 0 0 5px rgba(36, 91, 215, .09);
}
.quote-step.is-active small,
.quote-step.is-done small { color: var(--quote-navy); font-weight: 750; }
.quote-step-line {
    height: 2px;
    flex: 1;
    margin: 0 12px 22px;
    background: #dce5f2;
    border-radius: 20px;
}
.quote-step-line.is-done { background: var(--quote-blue); }

/* Main workspace — force a balanced form + summary layout */
.quote-workspace {
    min-height: 600px;
    padding: 42px 0 70px;
    background: #f4f7fb;
}
.quote-workspace > .container-custom {
    width: min(100% - 48px, 1240px);
    max-width: 1240px;
    margin-inline: auto;
}
.quote-workspace > .container-custom > .row {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(310px, .82fr);
    gap: 26px;
    align-items: start;
    margin: 0;
}
.quote-workspace > .container-custom > .row > [class*="col-"] {
    width: 100%;
    max-width: none;
    padding: 0;
    min-width: 0;
}
.quote-panel,
.quote-summary-card {
    padding: 28px;
    background: #fff;
    border: 1px solid #e3eaf4;
    border-radius: var(--quote-radius);
    box-shadow: var(--quote-shadow);
    margin-bottom: 22px;
}
.quote-panel { transition: border-color .2s ease, box-shadow .2s ease; }
.quote-panel:focus-within {
    border-color: #d3def2;
    box-shadow: 0 12px 34px rgba(15, 42, 87, .065);
}
.quote-panel-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.panel-icon,
.summary-card-top > span {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 46px;
    height: 46px;
    color: var(--quote-blue);
    background: #edf3ff;
    border: 1px solid #e2ebff;
    border-radius: 13px;
    font-size: 17px;
}
.quote-panel-heading h2,
.summary-card-top h2 {
    margin: 0 0 5px;
    color: var(--quote-navy);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.25px;
}
.quote-panel-heading p,
.summary-card-top p {
    margin: 0;
    color: var(--quote-muted);
    font-size: 11px;
    line-height: 1.7;
}

/* Form controls */
.quote-panel .form-label {
    display: block;
    margin-bottom: 8px;
    color: #263d60;
    font-size: 11px;
    font-weight: 750;
}
.quote-panel .form-control,
.quote-panel .form-select {
    min-height: 47px;
    padding: 11px 13px;
    color: var(--quote-ink);
    background-color: #fff;
    border: 1px solid #dce5f0;
    border-radius: 9px;
    box-shadow: none;
    font-size: 12px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.quote-panel .form-control::placeholder { color: #9aa8bc; }
.quote-panel .form-control:focus,
.quote-panel .form-select:focus {
    border-color: #7da1f2;
    box-shadow: 0 0 0 4px rgba(36, 91, 215, .09);
}
.quote-panel textarea.form-control { min-height: 100px; resize: vertical; }
.form-help {
    margin: 7px 0 0;
    color: var(--quote-muted);
    font-size: 10px;
    line-height: 1.75;
}
.quote-panel .form-check { display: flex; align-items: flex-start; gap: 8px; }
.quote-panel .form-check-input { flex-shrink: 0; margin-top: 3px; }
.quote-panel .form-check-label { color: var(--quote-muted); font-size: 10px; line-height: 1.8; }
.quote-panel .form-check-input:checked { background-color: var(--quote-blue); border-color: var(--quote-blue); }

/* Upload dropzone */
.professional-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 190px;
    padding: 28px;
    overflow: hidden;
    text-align: center;
    color: var(--quote-navy);
    background:
        radial-gradient(ellipse at center, rgba(36, 91, 215, .035), transparent 65%),
        #fbfcff;
    border: 1.5px dashed #b7c9e8;
    border-radius: 12px;
    cursor: pointer;
    transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.professional-dropzone:hover,
.professional-dropzone.is-dragging {
    background: #f0f5ff;
    border-color: var(--quote-blue);
    box-shadow: inset 0 0 0 1px var(--quote-blue), 0 8px 22px rgba(36, 91, 215, .07);
}
.professional-dropzone.is-dragging { transform: scale(1.006); }
.upload-cloud {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 3px;
    color: var(--quote-blue);
    background: #eaf1ff;
    border: 1px solid #dce7ff;
    border-radius: 17px;
    font-size: 22px;
    transition: transform .2s ease;
}
.professional-dropzone:hover .upload-cloud { transform: translateY(-3px); }
.professional-dropzone strong { color: var(--quote-navy); font-size: 13px; font-weight: 800; }
.professional-dropzone > span:not(.upload-cloud) { color: #536c91; font-size: 11px; }
.professional-dropzone > span u { color: var(--quote-blue); font-weight: 750; text-underline-offset: 3px; }
.professional-dropzone small { color: #8997ac; font-size: 10px; line-height: 1.6; }

/* Selected file rows */
.selected-files { display: grid; gap: 9px; margin-top: 14px; }
.selected-file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    background: #fff;
    border: 1px solid #e1e8f2;
    border-radius: 10px;
    animation: file-row-in .22s ease both;
}
.selected-file-row > i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    color: var(--quote-blue);
    background: #eff4ff;
    border-radius: 9px;
    font-size: 16px;
}
.selected-file-copy { display: grid; flex: 1; min-width: 0; gap: 5px; }
.selected-file-copy strong {
    overflow-wrap: anywhere;
    color: var(--quote-navy);
    font-size: 11px;
    font-weight: 700;
}
.selected-file-copy small { color: var(--quote-muted); font-size: 10px; }
.selected-file-remove {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    flex-shrink: 0;
    color: #b33d48;
    background: #fff1f2;
    border: 1px solid #ffe0e3;
    border-radius: 8px;
    transition: background .18s ease, transform .18s ease;
}
.selected-file-remove:hover { background: #ffe3e6; transform: scale(1.04); }
@keyframes file-row-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Automatic document analysis status and progress */
.analysis-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    color: #5b6e88;
    background: #f5f8fd;
    border: 1px solid #edf1f7;
    border-radius: 9px;
    font-size: 10px;
    line-height: 1.7;
}
.status-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #9aa9bd;
}
.analysis-status.is-processing { color: #2453a4; background: #f0f5ff; border-color: #dfe9ff; }
.analysis-status.is-processing .status-dot {
    background: #3977e8;
    box-shadow: 0 0 0 4px rgba(57, 119, 232, .13);
    animation: quote-pulse 1.15s infinite;
}
.analysis-status.is-complete { color: #176b40; background: #effbf4; border-color: #d8f2e2; }
.analysis-status.is-complete .status-dot { background: #19965a; }
.analysis-status.is-warning { color: #895b08; background: #fff8e8; border-color: #f7e7b7; }
.analysis-status.is-warning .status-dot { background: #d79a18; }
@keyframes quote-pulse { 50% { box-shadow: 0 0 0 7px rgba(57, 119, 232, .035); } }
.analysis-progress-wrap {
    margin-top: 13px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e4eaf3;
    border-radius: 10px;
}
.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--quote-navy);
    font-size: 10px;
    font-weight: 750;
}
.progress-meta strong { color: var(--quote-blue); font-variant-numeric: tabular-nums; }
.quote-progress {
    height: 8px;
    overflow: hidden;
    background: #e8eef8;
    border-radius: 30px;
}
.quote-progress .progress-bar {
    background: linear-gradient(90deg, #245bd7, #65a0ff);
    border-radius: 30px;
    transition: width .3s ease;
    position: relative;
}
.quote-progress .progress-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.3) 45%, transparent 70%);
    animation: progress-shine 1.5s linear infinite;
}
@keyframes progress-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Delivery cards */
.delivery-select-list { display: grid; gap: 10px; }
.delivery-select-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid #e0e7f1;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.delivery-select-option:hover { border-color: #b7c9ed; }
.delivery-select-option input { width: 14px; height: 14px; flex-shrink: 0; accent-color: var(--quote-blue); }
.delivery-select-option.is-selected,
.delivery-select-option:has(input:checked) {
    border-color: var(--quote-blue);
    background: #f4f7ff;
    box-shadow: inset 0 0 0 1px rgba(36, 91, 215, .07);
}
.delivery-select-copy { display: grid; flex: 1; gap: 5px; }
.delivery-select-copy strong { color: var(--quote-navy); font-size: 11px; font-weight: 800; }
.delivery-select-copy small { color: var(--quote-muted); font-size: 10px; }
.delivery-select-price { color: var(--quote-blue); font-size: 10px; font-weight: 800; white-space: nowrap; }

/* Included services / radio options */
.included-certification,
.payment-provider-note,
.thank-you-next {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #effbf4;
    border: 1px solid #d3f0df;
    border-radius: 10px;
    color: #176b40;
}
.included-certification > i { margin-top: 2px; }
.included-certification strong,
.payment-provider-note strong,
.thank-you-next strong { display: block; font-size: 11px; font-weight: 800; }
.included-certification p,
.payment-provider-note p,
.thank-you-next p { margin: 5px 0 0; color: #5d7969; font-size: 10px; line-height: 1.8; }
.radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #e0e7f1;
    border-radius: 8px;
    color: var(--quote-ink);
    font-size: 11px;
}
.radio-inline input { accent-color: var(--quote-blue); }

/* Sticky price summary */
.quote-summary-card {
    position: sticky;
    top: 22px;
    padding: 26px;
    border-color: #dfe7f3;
}
.summary-card-top {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8edf5;
    margin-bottom: 8px;
}
.summary-card-top > span { width: 44px; height: 44px; }
.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid #f0f3f8;
    color: var(--quote-muted);
    font-size: 11px;
}
.summary-row strong { color: var(--quote-navy); font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; }
.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 21px;
    color: var(--quote-navy);
    font-size: 12px;
    font-weight: 800;
}
.summary-total-row strong {
    color: var(--quote-blue);
    font-size: clamp(25px, 2.4vw, 31px);
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
}
.summary-security {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding: 14px;
    background: #f5f8fd;
    border: 1px solid #edf1f7;
    border-radius: 9px;
    color: var(--quote-muted);
    font-size: 10px;
    line-height: 1.8;
}
.summary-security i { color: var(--quote-blue); margin-top: 3px; }

/* Main call to action */
.quote-continue-button {
    position: relative;
    min-height: 51px;
    border: 0;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 7px 16px rgba(36, 91, 215, .16);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.quote-continue-button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(36, 91, 215, .22); }
.quote-continue-button:disabled { opacity: .72; cursor: wait; transform: none; }
.quote-submit-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 9px;
    vertical-align: -2px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: quote-spin .7s linear infinite;
}
@keyframes quote-spin { to { transform: rotate(360deg); } }

/* Quote review / PayPal state */
.payment-panel { text-align: left; }
.payment-success-icon,
.thank-you-check {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    color: #fff;
    background: #1b9b62;
    border-radius: 50%;
    font-size: 23px;
    box-shadow: 0 0 0 8px #eaf8f0;
}
.payment-panel h2 { color: var(--quote-navy); font-size: 26px; font-weight: 800; letter-spacing: -.7px; }
.payment-review-list { margin: 24px 0; border-top: 1px solid #e9edf4; }
.payment-review-list > div,
.thank-you-details > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #e9edf4;
    font-size: 11px;
}
.payment-review-list span,
.thank-you-details span { color: var(--quote-muted); }
.payment-review-list strong,
.thank-you-details strong { color: var(--quote-navy); text-align: right; overflow-wrap: anywhere; }
.payment-provider-note { background: #f2f6ff; border-color: #dce7ff; color: #1854b7; }
.payment-provider-note p { color: #647895; }
.payment-provider-note > i { font-size: 25px; }
#paypal-button-container { max-width: 440px; }
#paypalStatus { overflow-wrap: anywhere; }

/* Thank-you page */
.thank-you-page { min-height: 65vh; padding: 72px 0; background: #f4f7fb; }
.thank-you-card {
    max-width: 790px;
    margin: auto;
    padding: clamp(25px, 5vw, 48px);
    background: #fff;
    border: 1px solid #e3eaf4;
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(6, 39, 93, .08);
}
.thank-you-card h1 {
    margin: 13px 0;
    color: var(--quote-navy);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -1.1px;
}
.thank-you-lead { color: var(--quote-muted); font-size: 13px; line-height: 1.9; }
.thank-you-reference {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 26px 0;
    padding: 17px;
    background: #f3f7ff;
    border: 1px solid #dce7ff;
    border-radius: 10px;
    font-size: 11px;
}
.thank-you-reference span { color: var(--quote-muted); }
.thank-you-reference strong { color: var(--quote-blue); }
.thank-you-details { margin-bottom: 24px; }
.paid-status { color: #18814d !important; }
.thank-you-next { background: #f3f7ff; border-color: #dce7ff; color: var(--quote-blue); }
.thank-you-next p { color: var(--quote-muted); }

/* Validation */
.quote-panel .form-control.is-invalid,
.quote-panel .form-select.is-invalid { border-color: #dc5965; }
.quote-panel .form-control.is-invalid:focus,
.quote-panel .form-select.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220, 89, 101, .1); }

/* Responsive layout */
@media (max-width: 991px) {
    .quote-workspace > .container-custom > .row { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .quote-summary-card { position: static; }
    .quote-workspace { padding: 30px 0 48px; }
}
@media (max-width: 767px) {
    .quote-workspace > .container-custom { width: min(100% - 28px, 100%); }
    .quote-panel, .quote-summary-card { padding: 19px; border-radius: 13px; }
    .quote-panel-heading { gap: 11px; margin-bottom: 19px; }
    .panel-icon { width: 41px; height: 41px; }
    .quote-page-heading { padding: 28px 0; }
    .quote-page-heading h1 { font-size: 30px; }
    .quote-progress-steps { margin-top: 24px; }
    .quote-step { min-width: 64px; }
    .quote-step small { font-size: 9px; }
    .quote-step-line { margin-inline: 6px; }
    .professional-dropzone { min-height: 165px; padding: 22px 15px; }
    .delivery-select-option { align-items: flex-start; flex-wrap: wrap; padding: 13px; }
    .delivery-select-price { margin-left: 26px; }
    .summary-total-row strong { font-size: 26px; }
    .thank-you-page { padding: 38px 0; }
    .thank-you-reference { flex-direction: column; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
