/* 
 * WP Heat Estimator - Premium Stylesheet
 */

:root {
    --wphe-primary: #1e3a5f;      /* Deep Blue */
    --wphe-secondary: #00b4d8;    /* Vibrant Blue */
    --wphe-accent: #f4a261;       /* Warm Orange for highlights */
    --wphe-bg: #f9fbfd;           /* Very light gray/blue background */
    --wphe-card-bg: #ffffff;
    --wphe-text: #2b2d42;
    --wphe-text-light: #6c757d;
    --wphe-border: #e9ecef;
    --wphe-success-bg: #f0fdf4;
    --wphe-success-text: #166534;
    --wphe-radius: 12px;
    --wphe-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --wphe-shadow-hover: 0 8px 25px rgba(0, 180, 216, 0.15);
    --wphe-transition: all 0.3s ease;
}

.wphe-container {
    max-width: 700px;
    margin: 40px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--wphe-bg);
    border-radius: var(--wphe-radius);
    padding: 40px;
    box-shadow: var(--wphe-shadow);
    color: var(--wphe-text);
    position: relative;
    overflow: hidden;
}

.wphe-container * {
    box-sizing: border-box;
}

/* Progress Bar */
.wphe-progress-wrapper {
    width: 100%;
    height: 6px;
    background: var(--wphe-border);
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.wphe-progress-bar {
    height: 100%;
    background: var(--wphe-secondary);
    width: 0%;
    transition: width 0.4s ease;
}

/* Typography */
.wphe-step h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--wphe-primary);
}

.wphe-subtitle {
    font-size: 15px;
    color: var(--wphe-text-light);
    margin-bottom: 25px;
}

/* Step Animations */
.wphe-step {
    display: none;
    animation: wpheFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wphe-step.active {
    display: block;
}

@keyframes wpheFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Radio Cards (Selectable Options) */
.wphe-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.wphe-options.wphe-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.wphe-radio-card {
    cursor: pointer;
    position: relative;
}

.wphe-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.wphe-card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: var(--wphe-card-bg);
    border: 2px solid var(--wphe-border);
    border-radius: var(--wphe-radius);
    font-weight: 500;
    font-size: 16px;
    transition: var(--wphe-transition);
    text-align: center;
    min-height: 60px;
}

.wphe-radio-card:hover .wphe-card-content {
    border-color: #cceeff;
    box-shadow: var(--wphe-shadow-hover);
    transform: translateY(-2px);
}

.wphe-radio-card input[type="radio"]:checked + .wphe-card-content {
    border-color: var(--wphe-secondary);
    background: #f0fbff;
    color: var(--wphe-primary);
    font-weight: 600;
    box-shadow: 0 0 0 1px var(--wphe-secondary);
}

/* Inputs & Form Elements */
.wphe-input-group {
    margin-bottom: 20px;
}

.wphe-input-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--wphe-primary);
}

.wphe-badge {
    background: #fff8e1;
    color: #f59e0b;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.wphe-text-input,
.wphe-select-input,
.wphe-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--wphe-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    background: var(--wphe-card-bg);
    transition: var(--wphe-transition);
}

.wphe-textarea {
    resize: vertical;
}

.wphe-text-input:focus,
.wphe-select-input:focus,
.wphe-textarea:focus {
    outline: none;
    border-color: var(--wphe-secondary);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.wphe-flex {
    display: flex;
    gap: 15px;
}
.wphe-flex > * {
    flex: 1;
}

/* Savings Card (Result Step) */
.wphe-result-step .wphe-highlight {
    color: var(--wphe-primary);
    font-weight: 800;
}

.wphe-savings-card {
    display: flex;
    align-items: center;
    background: var(--wphe-success-bg);
    border-radius: var(--wphe-radius);
    padding: 25px;
    margin-top: 25px;
    border: 1px solid #dcfce7;
}

.wphe-savings-icon {
    font-size: 40px;
    margin-right: 20px;
    line-height: 1;
}

.wphe-savings-details h3 {
    margin: 0 0 5px 0;
    font-size: 22px;
    color: var(--wphe-success-text);
}

.wphe-savings-details p {
    margin: 0;
    color: #15803d;
    font-size: 15px;
}

/* Navigation Buttons */
.wphe-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--wphe-border);
}

.wphe-spacer {
    flex-grow: 1;
}

.wphe-btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--wphe-transition);
    font-family: inherit;
}

.wphe-btn-primary {
    background: var(--wphe-primary);
    color: white;
}

.wphe-btn-primary:hover {
    background: #152b4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2);
}

.wphe-btn-primary:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wphe-btn-secondary {
    background: transparent;
    color: var(--wphe-text-light);
    border: 1px solid var(--wphe-border);
}

.wphe-btn-secondary:hover {
    background: #f1f5f9;
    color: var(--wphe-text);
}

/* Responsive */
@media (max-width: 600px) {
    .wphe-options.wphe-grid-3 {
        grid-template-columns: 1fr;
    }
    .wphe-flex {
        flex-direction: column;
    }
}

/* Autocomplete List */
.wphe-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid var(--wphe-border);
    border-radius: 8px;
    box-shadow: var(--wphe-shadow);
    list-style: none;
    margin: 5px 0 0 0;
    padding: 0;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.wphe-autocomplete-list li {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
    color: var(--wphe-text);
    transition: background 0.2s;
}

.wphe-autocomplete-list li:last-child {
    border-bottom: none;
}

.wphe-autocomplete-list li:hover {
    background: #f0fbff;
    color: var(--wphe-primary);
}
