/* 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;
}
.progress-step.active {
    color: #27ae60; /* Brand Green */
}

/* 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;
}
.input-wrapper input:focus,
.form-row select:focus {
    border-color: #27ae60;
    outline: none;
}
.form-row {
    margin-bottom: 25px;
}
.form-row label {
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
}

/* 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;
}

/* Estimate Display */
.estimate-wrapper {
    background: #f8fcf8;
    border: 2px solid #27ae60;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}
.estimate-price {
    font-size: 42px;
    font-weight: 900;
    color: #27ae60;
    margin: 15px 0;
}
.financing-estimate {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #d9ebdd;
}
.financing-copy {
    margin: 0 0 8px;
    font-size: 20px;
    color: #2c3e50;
}
.financing-copy strong {
    color: #27ae60;
}
.financing-meta {
    margin: 0 0 18px;
    font-size: 13px;
    color: #7f8c8d;
}
.financing-button {
    display: inline-block;
    text-decoration: none;
}
.disclaimer {
    font-size: 13px;
    color: #7f8c8d;
}
.inclusion-list {
    line-height: 1.8;
    color: #34495e;
}
.divider {
    border: 0;
    height: 1px;
    background: #ecf0f1;
    margin: 30px 0;
}

/* Buttons & Footer */
.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;
}
button.btn-primary,
input[type="submit"].btn-primary,
a.btn-primary {
    background-color: #27ae60;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
button.btn-primary:hover,
input[type="submit"].btn-primary:hover,
a.btn-primary:hover {
    background-color: #219653;
}
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;
}
button.btn-secondary:hover {
    background-color: #bdc3c7;
    color: #2c3e50;
}

.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; }
    .financing-copy { font-size: 18px; }
    .financing-button { width: 100%; }
}

/* 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); }
}
