/* Inline Tooltip */
.calc-tooltip {
    display: inline-block;
    background-color: #34495e;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    cursor: help;
    margin-left: 8px;
    font-weight: normal;
}

.modern-calc-card .wpcf7-spinner {
    position: absolute;
    right: 0;
    top: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .split-footer > p { flex-direction: column-reverse; gap: 15px; }
    .split-footer button, .split-footer input { width: 100%; }
    .modern-calc-card { padding: 20px; }
    .estimate-price { font-size: 32px; }
}

/* Validation Error Styles */
.input-error {
    border-color: #e74c3c !important;
    background-color: #fdf0ed !important;
    animation: shake 0.4s 1 linear;
}

/* Optional subtle shake animation to draw the eye */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* Container & Global Styles */
.modern-calc-card {
    background: #ffffff;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-family: inherit;
}
.step-header { margin-bottom: 30px; text-align: center; }
.step-header h3 { margin: 0 0 10px 0; font-size: 28px; color: #2c3e50; }
.step-header p { color: #7f8c8d; margin: 0; }

/* Progress Bar */
.calc-progress {
    display: flex; justify-content: space-between;
    margin-bottom: 40px; border-bottom: 2px solid #f0f0f0; padding-bottom: 15px;
}
.progress-step {
    flex: 1; text-align: center; color: #bdc3c7; font-weight: 600;
    font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
}
/* BOB'S BRAND BLUE for Active State */
.progress-step.active { color: #2980b9; }

/* Form Layout & Inputs */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.full-width { grid-column: span 2; }
.input-wrapper input, .form-row select {
    width: 100%; padding: 14px; border: 1px solid #dcdde1;
    border-radius: 6px; font-size: 16px; background-color: #fcfcfc;
    transition: border-color 0.3s ease; box-sizing: border-box;
}
/* BOB'S BRAND BLUE for Focus State */
.input-wrapper input:focus, .form-row select:focus {
    border-color: #2980b9; outline: none;
}
.form-row { margin-bottom: 20px; }
.form-row label { font-weight: 700; display: block; margin-bottom: 8px; color: #2c3e50; }

/* Validation Error Styles */
.input-error { border-color: #e74c3c !important; background-color: #fdf0ed !important; animation: shake 0.4s 1 linear; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%, 75% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
}

/* Estimate Display */
/* Bob's Light Blue Box with Dark Blue Text */
.estimate-wrapper {
    background: #f4f9fb; border: 2px solid #2980b9;
    padding: 30px; text-align: center; border-radius: 8px; margin-bottom: 30px;
}
.estimate-price { font-size: 42px; font-weight: 900; color: #2980b9; margin: 15px 0; }
.disclaimer { font-size: 13px; color: #7f8c8d; }
.inclusion-list { line-height: 1.8; color: #34495e; }
.divider { border: 0; height: 1px; background: #ecf0f1; margin: 30px 0; }
.estimate-details .divider {
    margin-bottom: 15px;
}
.estimate-submission-gate,
.property-preview-card {
    background: #f4f9fb;
    border: 2px solid #d7e9f4;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}
.estimate-submission-gate h2,
.property-preview-card h3 {
    margin: 0 0 10px;
    color: #2c3e50;
}
.estimate-submission-gate p,
.property-preview-copy,
.property-preview-sqft {
    margin: 0;
    color: #5d6d7e;
}
.estimate-fallback-message {
    display: none;
    border-color: #d9c28f;
    background: #fff9ee;
}
.estimate-fallback-message p + p {
    margin-top: 12px;
}
.property-preview-image-wrap {
    margin: 18px 0 14px;
    border-radius: 10px;
    overflow: hidden;
    background: #dfe6eb;
    min-height: 260px;
    position: relative;
}
.property-preview-image-wrap--error {
    background: #fff9ee;
    border: 1px solid #ead6ab;
}
.property-preview-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(244, 249, 251, 0.92);
    color: #4c6272;
    z-index: 2;
}
.property-preview-error {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: #6b5a2b;
}
.property-preview-error p {
    margin: 0;
    max-width: 560px;
    font-weight: 600;
    line-height: 1.6;
}
.property-preview-loading p {
    margin: 0;
    font-weight: 600;
}
.property-preview-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(41, 128, 185, 0.2);
    border-top-color: #2980b9;
    border-radius: 50%;
    animation: property-preview-spin 0.8s linear infinite;
}
.property-preview-map {
    width: 100%;
    min-height: 260px;
}
.property-preview-image {
    display: none;
    width: 100%;
    height: auto;
}
.property-preview-sqft strong {
    color: #2980b9;
}
@keyframes property-preview-spin {
    to { transform: rotate(360deg); }
}
/* Buttons */
.calc-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.right-align { text-align: right; }
.split-footer > p { display: flex; justify-content: space-between; align-items: center; position: relative;}

/* BOB'S BRAND RED for Primary Actions */
.modern-calc-card button.btn-primary, .wpcf7 form .modern-calc-card input.wpcf7-submit.btn-primary, .modern-calc-card a.btn-primary {
    background-color: #c0392b; color: white; padding: 14px 28px;
    border: none; border-radius: 6px !important; font-size: 16px !important; font-weight: bold;
    cursor: pointer; transition: background 0.3s; width: fit-content !important;
}
.modern-calc-card button.btn-primary:hover, .wpcf7 form .modern-calc-card input.wpcf7-submit.btn-primary:hover, .modern-calc-card a.btn-primary:hover {
    background-color: #a93226;
}

.modern-calc-card button.btn-secondary {
    background-color: #ecf0f1; color: #7f8c8d; padding: 14px 28px;
    border: none; border-radius: 6px; font-size: 16px; font-weight: bold;
    cursor: pointer; transition: background 0.3s;
}
.modern-calc-card button.btn-secondary:hover { background-color: #bdc3c7; color: #2c3e50; }

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .split-footer > p { flex-direction: column-reverse; gap: 15px; }
    .split-footer button, .split-footer input { width: 100%; }
    .modern-calc-card { padding: 20px; }
    .estimate-price { font-size: 32px; }
}

ul.inclusion-list p {
    margin-bottom: 0;
}
