/* Brand colours */
:root {
    --lpc-lavender: #b389bb;
    --lpc-turquoise: #53c4ca;
    --lpc-charcoal: #3a3c41;
    --lpc-grey: #7b7d85;
    --lpc-whitesmoke: #f0f5f7;
}

.lpc-calculator {
    /* font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; */
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

/* Header & progress */
.lpc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.lpc-progress {
    flex: 1;
}

.lpc-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--lpc-whitesmoke);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.lpc-progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--lpc-turquoise), var(--lpc-lavender));
    border-radius: 999px;
    transition: width 0.3s ease;
}

.lpc-progress-steps {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--lpc-grey);
}

.lpc-progress-steps span.active {
    color: var(--lpc-charcoal);
    font-weight: 600;
}

/* Reset button */
.lpc-reset-btn {
    border: none!important;
    /* background: transparent!important; */
    padding: 6px!important;
    border-radius: 999px!important;
    cursor: pointer;
    display: flex!important;
    align-items: center!important;
    justify-content: center!important;
}

.lpc-reset-btn svg {
    width: 18px;
    height: 18px;
    /* fill: var(--lpc-grey); */
    fill: #fff;
}

/* Steps */
.lpc-step {
    display: none;
}

.lpc-step.is-active {
    display: block;
}

.lpc-step-title {
    font-size: 18px!important;
    margin-bottom: 12px!important;
    color: var(--lpc-charcoal)!important;
}

/* Location buttons */
.lpc-location-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .lpc-location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lpc-location-btn {
    border-radius: 999px;
    border: 1px solid var(--lpc-whitesmoke);
    background: var(--lpc-whitesmoke);
    color: var(--lpc-charcoal);
    padding: 10px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lpc-location-btn.is-selected {
    border-color: var(--lpc-turquoise);
    background: var(--lpc-turquoise);
    color: #fff;
}

/* Fields & buttons */
.lpc-field {
    margin-bottom: 16px;
}

.lpc-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--lpc-charcoal);
}

.lpc-field select {
    width: 100%;
    padding: 10px 14px!important;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23222' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    background-size: 12px 8px;
    padding-right: 40px!important; /* room for arrow */
}

.lpc-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.lpc-btn {
    border-radius: 999px;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    min-width: 120px;
}

.lpc-btn-primary {
    background: var(--lpc-turquoise);
    color: #fff;
}

.lpc-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lpc-btn-secondary {
    background: #fff;
    color: var(--lpc-charcoal);
    border: 1px solid #d1d5db;
}

.lpc-secondary-item {
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
}

.lpc-secondary-title {
    font-weight: 600;
    color: #3a3c41;
}

.lpc-secondary-price {
    color: #53c4ca;
    font-weight: 600;
    margin-top: 3px;
}

.lpc-secondary-disclaimer {
    color: #7b7d85;
    font-size: 13px;
    margin-top: 4px;
}

/* Loader */
.lpc-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 12px;
    text-align: center;
}

.lpc-spinner {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 3px solid var(--lpc-whitesmoke);
    border-top-color: var(--lpc-turquoise);
    animation: lpc-spin 0.9s linear infinite;
    margin-bottom: 12px;
}

.lpc-loader-message {
    font-size: 14px;
    color: var(--lpc-grey);
}

@keyframes lpc-spin {
    to { transform: rotate(360deg); }
}

/* Estimate card */
.lpc-estimate-card {
    background: linear-gradient(135deg, var(--lpc-turquoise), var(--lpc-lavender));
    border-radius: 16px;
    padding: 0 20px 20px;
    margin-top: 16px;
}

.lpc-estimate-header {
    padding: 16px;
    text-align: center;
    /* background: linear-gradient(135deg, var(--lpc-turquoise), var(--lpc-lavender)); */
    color: #fff;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.lpc-estimate-label {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: bold;
    margin-block-end: 0!important;
}

.lpc-estimate-value {
    font-size: 36px;
    line-height: 36px;
    font-weight: 700;
    margin: 0;
    margin-block-end: 5px!important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.lpc-price-was {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1.2;
}

.lpc-price-was s {
    text-decoration: line-through;
}

.lpc-price-now {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
}

.lpc-estimate-note {
    font-size: 11px;
    opacity: 0.9;
    margin-block-end: 0!important;
    margin: 0;
}

.lpc-estimate-body {
    padding: 16px;
    background: #fff;
    border-radius: 15px;
}

.lpc-result-cards {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    margin-bottom: 12px;
}

@media (min-width: 640px) {
    .lpc-result-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lpc-result-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.lpc-result-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lpc-result-icon svg {
    /* width: 50px;
    height: 30px; */
    display: block;
}

.lpc-result-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lpc-result-text .lpc-detail-label {
    color: #3a3c41;
}

.lpc-form-placeholder {
    padding: 16px;
    background: #fff;
    border-radius: 15px;
    margin-top: 20px;
}
.lpc-form-placeholder h2 {
    font-size: 20px!important;
    margin: 0!important;
    padding: 0!important;
    color: var(--lpc-charcoal)!important;
}
.lpc-form-placeholder p {
    margin: 5px 0 15px 0!important;
    padding: 0!important;
    font-size: 14px!important;
}

.lpc-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--lpc-charcoal);
}

.lpc-detail-label {
    font-weight: 600;
}

.lpc-includes h3 {
    font-size: 14px!important;
    margin: 12px 0 6px!important;
}
.lpc-includes-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 13px;
    line-height: 15px;
    color: var(--lpc-grey);

    column-count: 2;
    column-gap: 20px;
}

@media (max-width: 480px) {
    .lpc-includes-list {
        column-count: 1;
    }
}

.lpc-includes-list li {
    display: flex;
    align-items: flex-start;
    break-inside: avoid; /* prevents column breaks in middle of an item */
    margin-bottom: 4px;
}

.lpc-includes-list li::before {
    content: "✔";
    color: var(--lpc-turquoise);
    margin-right: 6px;
    flex-shrink: 0;
    width: 14px;       /* ensures alignment */
    margin-top: 2px;   /* slight vertical adjustment */
}

/* Disclaimer */
.lpc-disclaimer {
    margin-top: 10px;
    padding: 8px 10px;
    background: #fff4f4;
    border-left: 4px solid #e63946;
    border-radius: 8px;
    font-size: 12px;
    color: var(--lpc-grey);
}

/* Notes */
.lpc-notes {
    margin-top: 10px;
    padding:0px;
    font-size: 12px;
    color: var(--lpc-grey);
}

/* Debug */
.lpc-debug {
    margin-top: 12px;
    padding: 8px;
    background: #111827;
    color: #e5e7eb;
    font-size: 11px;
    border-radius: 8px;
    overflow-x: auto;
}

/* Accessibility */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
