/* Construction Calculator Styles - Matching 3DAD Theme Patterns */

/* Theme Variables Reference:
   Accent: #62ABB9
   Grey: #59595B
   White: #ffffff
   Light Blue: #E3EDF1
   Font: Raleway
   Transition: 0.25s ease
*/

.construction-calculator {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: #E3EDF1;
    border-radius: 0;
    box-shadow: none;
    font-family: "Raleway", sans-serif;
    position: relative;
}

/* Override theme heading margins inside calculator */
.construction-calculator h1,
.construction-calculator h2,
.construction-calculator h3,
.construction-calculator h4,
.construction-calculator h5,
.construction-calculator h6 {
    margin-top: 0;
    margin-bottom: 0;
}

@media (min-width: 768px) and (max-width: 1149px) {
    .construction-calculator {
        padding: 30px;
        margin: 30px auto;
    }
}

@media (max-width: 767px) {
    .construction-calculator {
        padding: 25px 16px;
        margin: 20px auto;
    }
}

/* Loading State */
.calculator-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(227, 237, 241, 0.95);
    z-index: 100;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.construction-calculator.loading .calculator-loading {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #E3EDF1;
    border-top: 4px solid #62ABB9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
.calculator-header {
    margin-bottom: 40px;
}

@media (min-width: 768px) and (max-width: 1149px) {
    .calculator-header {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .calculator-header {
        margin-bottom: 25px;
    }
}

.calculator-header h2 {
    font-size: 40px;
    line-height: 120%;
    font-weight: 400;
    color: #62ABB9;
    text-align: center;
    margin: 0 0 30px 0;
}

@media (min-width: 768px) and (max-width: 1149px) {
    .calculator-header h2 {
        font-size: 32px;
        margin-bottom: 25px;
    }
}

@media (max-width: 767px) {
    .calculator-header h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
}

/* Progress Bar */
.progress-bar {
    height: 6px;
    background: #ffffff;
    border-radius: 0;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #62ABB9;
    border-radius: 0;
    transition: width 0.25s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

@media (max-width: 767px) {
    .progress-steps {
        margin-top: 15px;
    }
}

.step-indicator {
    flex: 1;
    max-width: 50px;
    height: 50px;
    border-radius: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #59595B;
    transition: all 0.25s ease;
    font-size: 18px;
}

@media (max-width: 767px) {
    .step-indicator {
        max-width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

.step-indicator.active {
    background: #62ABB9;
    color: #ffffff;
    transform: scale(1.05);
}

.step-indicator.completed {
    background: #62ABB9;
    color: #ffffff;
    opacity: 0.7;
}

/* Body */
.calculator-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

@media (min-width: 768px) and (max-width: 1149px) {
    .calculator-body {
        gap: 25px;
        margin: 25px 0;
    }
}

@media (max-width: 767px) {
    .calculator-body {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }
}

/* Questions Section */
.calculator-questions {
    padding: 30px;
    background: #ffffff;
}

@media (min-width: 768px) and (max-width: 1149px) {
    .calculator-questions {
        padding: 25px;
    }
}

@media (max-width: 767px) {
    .calculator-questions {
        padding: 20px;
    }
}

.question-title {
    font-size: 24px;
    line-height: 120%;
    font-weight: 400;
    color: #62ABB9;
    margin: 0 0 20px 0;
}

@media (max-width: 767px) {
    .question-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

.question-hint {
    font-size: 16px;
    color: #59595B;
    margin: -10px 0 20px 0;
    font-style: italic;
    font-weight: 400;
}

@media (max-width: 767px) {
    .question-hint {
        font-size: 14px;
    }
}

.options-container {
    display: grid;
    gap: 15px;
}

@media (max-width: 767px) {
    .options-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.option-card {
    padding: 5px 20px;
    border: 2px solid #E3EDF1;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #ffffff;
    text-align: center;
}

@media (max-width: 767px) {
    .option-card {
        padding: 16px;
    }
}

.option-card:hover {
    border-color: #62ABB9;
    box-shadow: 0 2px 8px rgba(98, 171, 185, 0.15);
}

.option-card.selected {
    border-color: #62ABB9;
    background: #E3EDF1;
    box-shadow: 0 2px 8px rgba(98, 171, 185, 0.25);
}

.option-card.selected:hover {
    opacity: 0.8;
}

.option-card .option-label {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #59595B;
    display: block;
}

/* Multiple Choice Checkbox Style */
.option-card.checkbox-style {
    position: relative;
    padding-left: 50px;
    text-align: left;
}

@media (max-width: 767px) {
    .option-card.checkbox-style {
        padding-left: 45px;
    }
}

.option-card.checkbox-style::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #E3EDF1;
    border-radius: 0;
    background: #ffffff;
    transition: all 0.25s ease;
}

.option-card.checkbox-style.selected::before {
    background: #62ABB9;
    border-color: #62ABB9;
}

.option-card.checkbox-style.selected::after {
    content: '✓';
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
}

/* Price Display */
.price-display {
    background: #ffffff;
    border-radius: 0;
    padding: 30px;
}

@media (min-width: 768px) and (max-width: 1149px) {
    .price-display {
        padding: 25px;
    }
}

@media (max-width: 767px) {
    .price-display {
        padding: 20px;
    }
}

.price-display-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
    text-align: center;
}

.price-display-intro {
    font-size: 16px;
    line-height: 150%;
    color: #59595B;
    margin: 0;
    font-weight: 500;
}

.price-display-box {
    border: 2px solid #62ABB9;
    padding: 15px 25px;
    display: inline-block;
    margin: 5px auto;
}

.price-box-text {
    font-size: 18px;
    color: #59595B;
    font-weight: 400;
}

.price-box-min,
.price-box-max {
    font-weight: 600;
    color: #59595B;
}

.price-display-header h3,
main#pageMain.default-page .page-content .page-text .price-display-header h3 {
    font-size: 16px;
    line-height: 150%;
    font-weight: 400;
    color: #59595B;
    margin: 10px 0 0 0 !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    text-align: center;
}

.price-display-header h3 .accent-text {
    color: #62ABB9;
    font-weight: 500;
}

@media (max-width: 767px) {
    .price-display-header {
        gap: 12px;
        margin-bottom: 20px;
    }

    .price-display-intro {
        font-size: 14px;
    }

    .price-display-box {
        padding: 12px 20px;
    }

    .price-box-text {
        font-size: 16px;
    }

    .price-display-header h3 {
        font-size: 14px;
    }
}

.price-summary {
    background: #E3EDF1;
    padding: 20px;
    border-radius: 0;
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .price-summary {
        padding: 16px;
        margin-bottom: 16px;
    }
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ffffff;
    font-size: 16px;
    line-height: 150%;
    color: #59595B;
}

@media (max-width: 767px) {
    .price-row {
        font-size: 14px;
        padding: 8px 0;
    }
}

.price-row:last-child {
    border-bottom: none;
}

.price-total-row {
    font-weight: 600;
    font-size: 20px;
    color: #62ABB9;
    border-top: 2px solid #62ABB9;
    padding-top: 15px;
    margin-top: 10px;
}

@media (max-width: 767px) {
    .price-total-row {
        font-size: 18px;
    }
}

.price-fixed-total {
    color: #62ABB9;
    font-weight: 600;
}

.price-variable-total {
    color: #59595B;
    font-weight: 600;
}

.price-total {
    color: #62ABB9;
    font-weight: 600;
}

/* Price Breakdown */
.price-breakdown {
    margin-top: 20px;
}

@media (max-width: 767px) {
    .price-breakdown {
        margin-top: 16px;
    }
}

.price-breakdown h4 {
    font-size: 18px;
    line-height: 120%;
    font-weight: 500;
    color: #62ABB9;
    margin: 0 0 15px 0;
}

@media (max-width: 767px) {
    .price-breakdown h4 {
        font-size: 16px;
    }
}

.price-table {
    width: 100%;
    background: #E3EDF1;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.price-table th {
    background: #62ABB9;
    padding: 12px;
    text-align: left;
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
}

@media (max-width: 767px) {
    .price-table th {
        padding: 10px;
        font-size: 13px;
    }
}

.price-table td {
    padding: 12px;
    border-bottom: 1px solid #ffffff;
    font-size: 14px;
    color: #59595B;
}

@media (max-width: 767px) {
    .price-table td {
        padding: 10px;
        font-size: 13px;
    }
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.price-empty-row td {
    text-align: center;
    color: #59595B;
    font-style: italic;
}

.price-range {
    color: #59595B;
    font-weight: 500;
}

.price-fixed {
    color: #62ABB9;
    font-weight: 500;
}

/* Footer */
.calculator-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 30px;
    border-top: 2px solid #ffffff;
    flex-wrap: wrap;
}

@media (min-width: 768px) and (max-width: 1149px) {
    .calculator-footer {
        padding-top: 25px;
    }
}

@media (max-width: 767px) {
    .calculator-footer {
        flex-direction: column;
        padding-top: 20px;
        gap: 12px;
    }
}

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: "Raleway", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 767px) {
    .btn {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
    }
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #62ABB9;
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background: #59595B;
    box-shadow: 0 4px 12px rgba(98, 171, 185, 0.3);
}

.btn-secondary {
    background: #59595B;
    color: #ffffff;
}

.btn-secondary:hover:not(:disabled) {
    background: #62ABB9;
}

.btn-success {
    background: #62ABB9;
    color: #ffffff;
}

.btn-success:hover {
    background: #59595B;
}

.btn-reset {
    background: #ffffff;
    color: #59595B;
    border: 2px solid #59595B;
}

.btn-reset:hover {
    background: #59595B;
    color: #ffffff;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator-step {
    animation: slideInUp 0.4s ease;
}

/* Progress Text */
.progress-text {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #59595B;
}

/* Number Input */
.number-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 30px;
}

.number-input {
    width: 200px;
    padding: 15px 20px;
    font-size: 24px;
    text-align: center;
    border: 2px solid #E3EDF1;
    border-radius: 0;
    font-family: "Raleway", sans-serif;
    transition: border-color 0.25s ease;
}

.number-input:focus {
    outline: none;
    border-color: #62ABB9;
}

.number-input::placeholder {
    font-size: 16px;
    color: #999;
}

.number-suffix {
    font-size: 24px;
    color: #62ABB9;
    font-weight: 500;
}

@media (max-width: 767px) {
    .number-input-wrapper {
        padding: 20px;
    }

    .number-input {
        width: 150px;
        padding: 12px 15px;
        font-size: 20px;
    }

    .number-suffix {
        font-size: 20px;
    }
}

/* Answer Type Indicators - hidden from frontend */
.option-type {
    display: none;
}

.option-card.option-na {
    border-color: #d4a373;
}

.option-card.option-na:hover {
    border-color: #bc8c5e;
}

.option-card.option-na.selected {
    background: #fdf5ef;
    border-color: #d4a373;
}

.option-card.option-na .option-type {
    color: #d4a373;
}

/* Contact Message for N/A */
.contact-message {
    background: #fff3cd;
    border-left: 3px solid #d4a373;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #59595B;
    font-weight: 500;
}

.contact-message a {
    color: #62ABB9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

.contact-message a:hover {
    color: #59595B;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .contact-message {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* N/A row in breakdown */
.row-na td {
    color: #d4a373;
    font-style: italic;
}

/* Range Visualization */
.range-visualization {
    padding: 15px 0;
}

/* Labels row - shows both calculations info */
.range-labels-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
    border: 1px solid #E3EDF1;
    overflow: hidden;
}

.range-label-item {
    background: #fff;
    border-bottom: 1px solid #E3EDF1;
}

.range-label-item:last-child {
    border-bottom: none;
}

.range-label-1 {
    border-left: 3px solid #59595B;
}

.range-label-2 {
    border-left: 3px solid #5FA9B7;
}

/* Accordion header - clickable */
.range-label-header {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.range-label-header:hover {
    background: #f8f9fa;
}

.range-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.range-label-row:first-child {
    margin-bottom: 5px;
}

.range-label-base {
    font-size: 14px;
    font-weight: 400;
    color: #59595B;
}

.range-label-text {
    font-size: 14px;
    font-weight: 400;
    color: #59595B;
}

.range-label-values {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.range-label-1 .range-label-values {
    color: #59595B;
}

.range-label-2 .range-label-values {
    color: #5FA9B7;
}

/* Accordion toggle icon */
.range-label-toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.range-label-toggle::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #59595B;
    border-bottom: 2px solid #59595B;
    transform: rotate(45deg);
    margin-top: -4px;
}

.range-label-item.expanded .range-label-toggle::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

/* Accordion details - expandable content */
.range-label-details {
    display: none;
    padding: 0 16px 16px 16px;
    background: #f8f9fa;
    border-top: 1px solid #E3EDF1;
}

.range-label-item.expanded .range-label-details {
    display: block;
}

.calc-formula {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.calc-formula code {
    background: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: monospace;
    color: #62ABB9;
    font-weight: 600;
}

.calc-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.calc-label {
    color: #666;
}

.calc-value {
    font-weight: 500;
    color: #333;
    font-family: monospace;
}

.calc-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #62ABB9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 12px;
    margin-bottom: 8px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.calc-k-row {
    padding-left: 10px;
    border-left: 2px solid #E3EDF1;
}

.calc-k-row .calc-k-label {
    font-size: 12px;
    color: #888;
}

.calc-k-row .calc-value {
    font-size: 12px;
}

.calc-row.calc-k-total {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #E3EDF1;
}

.calc-row.calc-k-total .calc-label {
    font-weight: 600;
    color: #62ABB9;
}

.calc-row.calc-k-total .calc-value {
    font-weight: 600;
    color: #62ABB9;
}

.calc-row.calc-result {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.calc-row.calc-result .calc-label {
    font-weight: 600;
    color: #333;
}

.calc-row.calc-result .calc-value {
    font-weight: 700;
}

.range-label-1 .calc-row.calc-result .calc-value {
    color: #59595B;
}

.range-label-2 .calc-row.calc-result .calc-value {
    color: #5FA9B7;
}

/* Combined track - single row with both bars */
.range-track {
    position: relative;
    height: 70px;
    margin: 20px 0 15px 0;
}

/* Horizontal golden base line - on top of overlap */
.range-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #d4a373;
    transform: translateY(-50%);
    z-index: 10;
}

.range-track-bg {
    display: none;
}

.range-bar {
    position: absolute;
}

/* Bar 1 - Projektēšanas izmaksas - above the line */
.range-bar-1 {
    background: transparent;
    height: 24px;
    bottom: 50%;
    margin-bottom: 1px;
}

/* Light blue fill - behind overlap */
.range-bar-1::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 0;
    background: #dce8ed;
    z-index: 1;
}

/* Border frame - on top of overlap */
.range-bar-1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #444;
    border-bottom: none;
    z-index: 5;
    pointer-events: none;
}

/* Bar 2 - Būvniecības izmaksas - below the line */
.range-bar-2 {
    background: transparent;
    height: 24px;
    top: 50%;
    margin-top: 1px;
}

/* Light blue fill - behind overlap */
.range-bar-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: #dce8ed;
    z-index: 1;
}

/* Border frame - on top of overlap */
.range-bar-2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #444;
    border-top: none;
    z-index: 5;
    pointer-events: none;
}

/* Overlap indicator - shows optimal range */
.range-overlap {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    background: #62ABB9;
    z-index: 2;
    pointer-events: none;
}

/* Scale labels - Top row for optimal values */
.range-scale-optimal {
    position: relative;
    height: 20px;
    margin-top: 8px;
}

.range-scale-optimal-start,
.range-scale-optimal-end {
    position: absolute;
    font-size: 12px;
    color: #62ABB9;
    font-weight: 600;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Scale labels - Bottom row for overall min/max */
.range-scale-overall {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
    margin-top: 4px;
}

.range-scale-min,
.range-scale-max {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

/* Cost Zones Display */
.cost-zones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.cost-zone {
    flex: 1;
    padding: 14px 12px;
    text-align: center;
}

.cost-zone-label {
    font-size: 14px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cost-zone-value {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Left zone - cheaper */
.cost-zone-left {
    background: #E3EDF1;
    border: 1px solid #e0e0e0;
}

.cost-zone-left .cost-zone-label {
    color: #888;
}

.cost-zone-left .cost-zone-value {
    color: #666;
}

/* Center zone - optimal */
.cost-zone-center {
    background: linear-gradient(135deg, #62ABB9 0%, #4a9aa8 100%);
}

.cost-zone-center .cost-zone-label {
    color: rgba(255, 255, 255, 0.85);
}

.cost-zone-center .cost-zone-value {
    color: #fff;
    font-size: 20px;
}

/* Right zone - expensive */
.cost-zone-right {
    background: #E3EDF1;
    border: 1px solid #e0e0e0;
}

.cost-zone-right .cost-zone-label {
    color: #888;
}

.cost-zone-right .cost-zone-value {
    color: #666;
}

/* Answer Description */
.answer-description {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 3px solid #62ABB9;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

@media (max-width: 600px) {
    .cost-zones {
        flex-direction: column;
        gap: 8px;
    }

    .cost-zone {
        padding: 12px 10px;
    }

    .cost-zone-value {
        font-size: 14px;
    }

    .cost-zone-center .cost-zone-value {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .range-labels-row {
        margin-bottom: 15px;
    }

    .range-label-header {
        padding: 10px 12px;
    }

    .range-label-base {
        font-size: 13px;
    }

    .range-label-text {
        font-size: 13px;
    }

    .range-label-values {
        font-size: 16px;
    }

    .range-label-item {
        position: relative;
    }

    .range-label-details {
        padding: 0 12px 12px 12px;
    }

    .calc-formula {
        font-size: 12px;
    }

    .calc-row {
        font-size: 12px;
    }

    .range-track {
        height: 60px;
    }

    .range-scale-optimal,
    .range-scale-overall {
        font-size: 11px;
    }

    .range-scale-optimal-start,
    .range-scale-optimal-end {
        font-size: 11px;
    }
}

/* Fixed Price Display */
.fixed-price-display {
    text-align: center;
    padding: 30px;
}

.fixed-price-label {
    font-size: 16px;
    color: #59595B;
    margin-bottom: 10px;
}

.fixed-price-value {
    font-size: 32px;
    font-weight: 600;
    color: #62ABB9;
}

@media (max-width: 767px) {
    .fixed-price-display {
        padding: 20px;
    }

    .fixed-price-value {
        font-size: 26px;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 30px;
    color: #59595B;
    font-style: italic;
}

.empty-state p {
    margin: 0;
}

/* Q1 Next Step Guidance */
.q1-next-guidance {
    text-align: center;
    padding: 30px 20px;
    margin-top: 20px;
    background: #f8f9fa;
    border: 2px dashed #62ABB9;
}

.q1-guidance-text {
    font-size: 16px;
    color: #59595B;
    margin: 0 0 20px 0;
    font-style: italic;
}

.q1-next-guidance .btn-next-q1 {
    min-width: 150px;
}

@media (max-width: 767px) {
    .q1-next-guidance {
        display: none !important;
    }
}

/* Intro Screen */
.calculator-intro {
    padding: 40px;
    text-align: center;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-left: 4px solid #62ABB9;
}

.intro-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-start-calculator,
.btn-intro-consultation {
    min-width: 200px;
    padding: 16px 40px;
    font-size: 18px;
}

@media (min-width: 768px) and (max-width: 1149px) {
    .calculator-intro {
        padding: 30px;
    }

    .intro-text {
        padding: 25px;
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .calculator-intro {
        padding: 25px 16px;
    }

    .intro-text {
        font-size: 14px;
        padding: 20px;
        margin-bottom: 25px;
    }

    .intro-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-start-calculator,
    .btn-intro-consultation {
        width: 100%;
        padding: 14px 30px;
        font-size: 16px;
    }
}

/* Debug Section (temporary) */
.calculator-debug {
    margin-top: 30px;
    border: 3px dashed #dc3232;
    background: #fff5f5;
    padding: 20px;
}

.debug-header {
    border-bottom: 2px solid #dc3232;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.debug-header h4 {
    margin: 0 0 5px 0;
    color: #dc3232;
    font-size: 16px;
}

.debug-header small {
    color: #999;
    font-style: italic;
}

.debug-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.debug-section {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
}

.debug-section-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.debug-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dotted #eee;
    font-size: 13px;
}

.debug-row:last-child {
    border-bottom: none;
}

.debug-label {
    color: #666;
    font-family: monospace;
}

.debug-value {
    font-weight: 600;
    color: #333;
    font-family: monospace;
}

.debug-section-result {
    grid-column: 1 / -1;
    background: #f0fff0;
    border-color: #4caf50;
}

.debug-formula {
    background: #fff;
    padding: 12px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 4px solid #4caf50;
}

.debug-formula code {
    display: block;
    background: #f5f5f5;
    padding: 8px;
    margin: 8px 0;
    font-size: 12px;
    color: #666;
}

.debug-calc {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4caf50;
    font-family: monospace;
}

@media (max-width: 767px) {
    .debug-content {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Gravity Forms Modal
   ===================================================== */

/* Body class when modal is open */
body.ccc-modal-open {
    overflow: hidden;
}

/* Modal overlay */
.ccc-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ccc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(89, 89, 91, 0.85);
    cursor: pointer;
}

/* Modal container */
.ccc-modal-container {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: cccModalSlideIn 0.3s ease;
}

@keyframes cccModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal header */
.ccc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #62ABB9;
    color: #ffffff;
}

.ccc-modal-header h3 {
    margin-bottom: 0 !important;
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
}

.ccc-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.25s ease;
}

.ccc-modal-close:hover {
    opacity: 1;
}

/* Modal body */
.ccc-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

/* Modal loading state */
.ccc-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #59595B;
}

.ccc-modal-loading .spinner {
    margin-bottom: 15px;
}

/* Modal content */
.ccc-modal-content {
    /* Gravity Forms styling overrides for modal */
}

/* Error message in modal */
.ccc-form-error {
    color: #dc3232;
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
}

/* Gravity Forms styling inside modal */
.ccc-modal-content .gform_wrapper {
    margin: 0;
}

.ccc-modal-content .gform_wrapper.gform-theme--foundation .gform_fields {
    display: block !important;
    grid-column-gap: 0 !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
}

.ccc-modal-content .gform_wrapper form {
    margin: 0;
}

.ccc-modal-content .gform_wrapper .gform_body {
    margin-bottom: 20px;
}

.ccc-modal-content .gform_wrapper .gfield {
    margin-bottom: 20px;
}

.ccc-modal-content .gform_wrapper .gfield_label {
    font-weight: 500;
    color: #59595B;
    margin-bottom: 8px;
}

.ccc-modal-content .gform_wrapper input[type="text"],
.ccc-modal-content .gform_wrapper input[type="email"],
.ccc-modal-content .gform_wrapper input[type="tel"],
.ccc-modal-content .gform_wrapper input[type="number"],
.ccc-modal-content .gform_wrapper textarea,
.ccc-modal-content .gform_wrapper select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E3EDF1;
    border-radius: 0;
    font-size: 16px;
    font-family: "Raleway", sans-serif;
    transition: border-color 0.25s ease;
}

.ccc-modal-content .gform_wrapper input:focus,
.ccc-modal-content .gform_wrapper textarea:focus,
.ccc-modal-content .gform_wrapper select:focus {
    outline: none;
    border-color: #62ABB9;
}

.ccc-modal-content .gform_wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

/* Submit button styling */
.ccc-modal-content .gform_wrapper .gform_footer,
.ccc-modal-content .gform_wrapper .gform_page_footer {
    margin-top: 25px;
    padding-top: 20px;
    text-align: center;
}

.ccc-modal-content .gform_wrapper input[type="submit"],
.ccc-modal-content .gform_wrapper .gform_button,
.ccc-modal-content .gform_wrapper #gform_submit_button_1 {
    display: inline-block;
    background: #62ABB9 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 30px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    font-family: "Raleway", sans-serif !important;
    border-radius: 0 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.ccc-modal-content .gform_wrapper input[type="submit"]:hover,
.ccc-modal-content .gform_wrapper .gform_button:hover,
.ccc-modal-content .gform_wrapper #gform_submit_button_1:hover {
    background: #59595B !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(98, 171, 185, 0.3);
}

.ccc-modal-content .gform_wrapper input[type="submit"]:focus,
.ccc-modal-content .gform_wrapper .gform_button:focus,
.ccc-modal-content .gform_wrapper #gform_submit_button_1:focus {
    outline: none !important;
}

/* Validation styling */
.ccc-modal-content .gform_wrapper .gfield_error input,
.ccc-modal-content .gform_wrapper .gfield_error textarea,
.ccc-modal-content .gform_wrapper .gfield_error select {
    border-color: #dc3232 !important;
}

.ccc-modal-content .gform_wrapper .validation_message {
    color: #dc3232;
    font-size: 13px;
    margin-top: 5px;
}

.ccc-modal-content .gform_wrapper .validation_error,
.ccc-modal-content .gform_wrapper .gform_validation_errors {
    margin-top: 0;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff5f5;
    border: none;
    border-left: 3px solid #dc3232;
    font-size: 14px;
    line-height: 1.5;
    color: #dc3232;
    border-radius: 0;
    box-shadow: none;
}

.ccc-modal-content .gform_wrapper .gform_validation_errors h2,
.ccc-modal-content .gform_wrapper .gform_validation_errors .gform_submission_error {
    color: #dc3232;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.ccc-modal-content .gform_wrapper .gform_validation_errors ol {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.ccc-modal-content .gform_wrapper .gform_validation_errors li {
    color: #dc3232;
    font-size: 13px;
    margin-bottom: 5px;
}

.ccc-modal-content .gform_wrapper .gform_validation_errors li a {
    color: #dc3232;
    text-decoration: underline;
}

/* Confirmation message */
.ccc-modal-content .gform_confirmation_wrapper {
    background: #f0fff0;
    border-left: 4px solid #4caf50;
    padding: 20px;
    color: #2e7d32;
    font-size: 16px;
    text-align: center;
}

/* Remove duplicate styling from nested message */
.ccc-modal-content .gform_confirmation_wrapper .gform_confirmation_message {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

/* Fallback for when message is not wrapped */
.ccc-modal-content > .gform_confirmation_message {
    background: #f0fff0;
    border-left: 4px solid #4caf50;
    padding: 20px;
    color: #2e7d32;
    font-size: 16px;
    text-align: center;
}

/* Close button after confirmation */
.ccc-close-btn-wrapper {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
}

.ccc-confirmation-close {
    min-width: 150px;
    padding: 14px 40px;
    background: #62ABB9;
    color: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: "Raleway", sans-serif;
}

.ccc-confirmation-close:hover {
    background: #59595B;
    box-shadow: 0 4px 12px rgba(98, 171, 185, 0.3);
}

/* Hidden fields - calculator data */
.ccc-modal-content .gform_wrapper .gfield_visibility_hidden {
    display: none !important;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .ccc-modal {
        padding: 10px;
    }

    .ccc-modal-container {
        max-height: 95vh;
    }

    .ccc-modal-header {
        padding: 15px 20px;
    }

    .ccc-modal-header h3 {
        font-size: 18px;
    }

    .ccc-modal-close {
        font-size: 28px;
    }

    .ccc-modal-body {
        padding: 20px;
    }

    .ccc-modal-content .gform_wrapper input[type="submit"],
    .ccc-modal-content .gform_wrapper .gform_button {
        width: 100%;
        padding: 12px 30px;
    }
}
