/* ============================================
   HEAT PUMP WIZARD - PREMIUM STYLES
   ============================================ */

/* CSS Variables Integration */
:root {

    
    /* Extended variables for wizard */
    --hp-border-radius-sm: 8px;
    --hp-border-radius-md: 12px;
    --hp-border-radius-lg: 16px;
    --hp-border-radius-xl: 24px;
    --hp-border-radius-full: 9999px;
    
    --hp-shadow-sm: 0 1px 2px 0 rgba(63, 45, 167, 0.05);
    --hp-shadow-md: 0 4px 6px -1px rgba(63, 45, 167, 0.1), 0 2px 4px -1px rgba(63, 45, 167, 0.06);
    --hp-shadow-lg: 0 10px 15px -3px rgba(63, 45, 167, 0.1), 0 4px 6px -2px rgba(63, 45, 167, 0.05);
    --hp-shadow-xl: 0 20px 25px -5px rgba(63, 45, 167, 0.1), 0 10px 10px -5px rgba(63, 45, 167, 0.04);
    --hp-shadow-glow: 0 0 20px rgba(63, 45, 167, 0.15);
    
    --hp-transition-fast: 150ms ease-in-out;
    --hp-transition-base: 250ms ease-in-out;
    --hp-transition-slow: 350ms ease-in-out;
    
    --hp-spacing-xs: 0.25rem;
    --hp-spacing-sm: 0.5rem;
    --hp-spacing-md: 1rem;
    --hp-spacing-lg: 1.5rem;
    --hp-spacing-xl: 2rem;
    --hp-spacing-2xl: 3rem;
    
    --hp-container-max: 1200px;
}

/* ============================================
   BASE CONTAINER & LAYOUT
   ============================================ */

.hp-wizard-container {
    max-width: var(--hp-container-max);
    margin: 0 auto;
    padding: var(--hp-spacing-xl);
    background: linear-gradient(135deg, var(--clr-off-white) 0%, var(--clr-white) 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
}

@media (max-width: 768px) {
    .hp-wizard-container {
        padding: var(--hp-spacing-md);
    }
}

/* ============================================
   PROGRESS BAR & STEPS INDICATOR
   ============================================ */

.hp-progress-wrapper {
    margin-bottom: var(--hp-spacing-2xl);
    position: relative;
}

.hp-progress-bar {
    height: 6px;
    background: var(--clr-light-gray);
    border-radius: var(--hp-border-radius-full);
    overflow: hidden;
    margin-bottom: var(--hp-spacing-lg);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--clr-primary) 0%, var(--clr-primary-light) 50%, var(--clr-primary) 100%);
    background-size: 200% 100%;
    border-radius: var(--hp-border-radius-full);
    transition: width var(--hp-transition-slow);
    position: relative;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.hp-steps-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 var(--hp-spacing-md);
}

.hp-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    cursor: pointer;
    transition: all var(--hp-transition-base);
}

.hp-step-dot:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 4px;
    background: var(--clr-border-gray);
    z-index: 0;
    transition: background var(--hp-transition-base);
}

.hp-step-dot.completed:not(:last-child)::after {
    background: linear-gradient(90deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
}

.hp-step-number {
    width: 40px;
    height: 40px;
    border-radius: var(--hp-border-radius-full);
    background: var(--clr-white);
    border: 4px solid var(--clr-border-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--clr-mid-gray);
    position: relative;
    z-index: 1;
    transition: all var(--hp-transition-base);
    box-shadow: var(--hp-shadow-sm);
}

.hp-step-dot.active .hp-step-number,
.hp-step-dot.completed .hp-step-number {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
    border-color: var(--clr-primary);
    color: var(--clr-white);
    box-shadow: var(--hp-shadow-glow);
    transform: scale(1.1);
}

/* .hp-step-dot.completed .hp-step-number::after {
    content: '✓';
    font-size: 1rem;
} */

.hp-step-dot.completed .hp-step-number span {
    display: none;
}

.hp-step-label {
    margin-top: var(--hp-spacing-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-mid-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    transition: all var(--hp-transition-base);
}

.hp-step-dot.active .hp-step-label {
    color: var(--clr-primary);
    font-weight: 700;
}

@media (max-width: 640px) {
    .hp-steps-indicator {
        padding: 0;
    }
    
    .hp-step-number {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .hp-step-label {
        font-size: 0.625rem;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .hp-step-dot:not(:last-child)::after {
        top: 16px;
    }
}

/* ============================================
   STEP CONTENT CONTAINERS
   ============================================ */

.hp-step-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
    background: var(--clr-white);
    border-radius: var(--hp-border-radius-xl);
    padding: var(--hp-spacing-2xl);
    box-shadow: var(--hp-shadow-lg);
    border: 1px solid var(--clr-border-gray);
    position: relative;
    overflow: hidden;
}

.hp-step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
}

.hp-step-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hp-step-content {
        padding: var(--hp-spacing-lg);
        border-radius: var(--hp-border-radius-lg);
    }
}

/* ============================================
   STEP HEADERS
   ============================================ */

.hp-step-header {
    text-align: center;
    margin-bottom: var(--hp-spacing-2xl);
    position: relative;
}

.hp-step-title {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--hp-spacing-sm);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hp-step-subtitle {
    font-size: 1.125rem;
    color: var(--clr-mid-gray);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hp-step-title {
        font-size: 1.75rem;
    }
    
    .hp-step-subtitle {
        font-size: 1rem;
    }
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.hp-form {
    width: 100%;
}

.hp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--hp-spacing-lg);
    margin-bottom: var(--hp-spacing-xl);
}

.hp-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--hp-spacing-sm);
}

.hp-form-group-full {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .hp-form-grid {
        grid-template-columns: 1fr;
        gap: var(--hp-spacing-md);
    }
}

/* Labels */
.hp-form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: var(--hp-spacing-xs);
    margin-bottom: var(--hp-spacing-xs);
}

.hp-label-icon {
    font-size: 1.125rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* Input Fields - Premium Styling */
.hp-form-input,
.hp-form-select {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid var(--clr-border-gray);
    border-radius: var(--hp-border-radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: var(--clr-white);
    color: #1a1a2e;
    transition: all var(--hp-transition-base);
    outline: none;
    position: relative;
}

.hp-form-input:hover,
.hp-form-select:hover {
    border-color: var(--clr-primary-light);
    background: var(--clr-off-white);
}

.hp-form-input:focus,
.hp-form-select:focus {
    border-color: var(--clr-primary);
    background: var(--clr-white);
    box-shadow: 0 0 0 4px rgba(63, 45, 167, 0.1);
    transform: translateY(-1px);
}

.hp-form-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Select Wrapper */
.hp-select-wrapper {
    position: relative;
    width: 100%;
}

.hp-select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--clr-primary);
    font-size: 0.75rem;
    transition: transform var(--hp-transition-base);
}

.hp-select-wrapper:focus-within .hp-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.hp-form-select {
    appearance: none;
    cursor: pointer;
    padding-right: 2.5rem;
}

/* Radio Cards */
.hp-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--hp-spacing-md);
}

.hp-radio-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.hp-radio-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.hp-radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--hp-spacing-lg);
    background: var(--clr-white);
    border: 2px solid var(--clr-border-gray);
    border-radius: var(--hp-border-radius-md);
    transition: all var(--hp-transition-base);
    text-align: center;
    min-height: 80px;
}

.hp-radio-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #374151;
    transition: color var(--hp-transition-base);
}

.hp-radio-card:hover .hp-radio-content {
    border-color: var(--clr-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--hp-shadow-md);
}

.hp-radio-card input:checked + .hp-radio-content {
    border-color: var(--clr-primary);
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
    box-shadow: var(--hp-shadow-glow);
}

.hp-radio-card input:checked + .hp-radio-content .hp-radio-title {
    color: var(--clr-white);
}

.hp-radio-card input:focus + .hp-radio-content {
    box-shadow: 0 0 0 4px rgba(63, 45, 167, 0.2);
}

@media (max-width: 640px) {
    .hp-radio-group {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hp-radio-content {
        padding: var(--hp-spacing-md);
        min-height: 60px;
    }
}

/* Dimensions Grid */
.hp-dimensions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--hp-spacing-sm);
}

@media (max-width: 768px) {
    .hp-dimensions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.hp-form-actions {
    display: flex;
    gap: var(--hp-spacing-md);
    margin-top: var(--hp-spacing-2xl);
    padding-top: var(--hp-spacing-xl);
    border-top: 1px solid var(--clr-border-gray);
}

.hp-actions-between {
    justify-content: space-between;
}

.hp-actions-center {
    justify-content: center;
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--hp-spacing-sm);
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--hp-border-radius-md);
    cursor: pointer;
    transition: all var(--hp-transition-base);
    text-decoration: none;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

.hp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.hp-btn:hover::before {
    left: 100%;
}

.hp-btn-primary {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
    color: var(--clr-white);
    box-shadow: 0 4px 14px rgba(63, 45, 167, 0.4);
}

.hp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 45, 167, 0.5);
    background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%);
}

.hp-btn-primary:active {
    transform: translateY(0);
}

.hp-btn-secondary {
    background: var(--clr-white);
    color: var(--clr-mid-gray);
    border: 2px solid var(--clr-border-gray);
}

.hp-btn-secondary:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
    background: var(--clr-off-white);
}

.hp-btn-outline-primary {
    background: transparent;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
}

.hp-btn-outline-primary:hover {
    background: var(--clr-primary);
    color: var(--clr-white);
}

.hp-btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--hp-border-radius-lg);
}

.hp-btn-xl {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
    border-radius: var(--hp-border-radius-lg);
}

.hp-btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.hp-btn-icon-danger {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--hp-border-radius-full);
    background: #fee2e2;
    color: #dc2626;
    font-size: 1.25rem;
    line-height: 1;
}

.hp-btn-icon-danger:hover {
    background: #dc2626;
    color: var(--clr-white);
    transform: rotate(90deg);
}

.hp-btn-arrow {
    transition: transform var(--hp-transition-base);
}

.hp-btn:hover .hp-btn-arrow {
    transform: translateX(4px);
}

@media (max-width: 640px) {
    .hp-form-actions {
        flex-direction: column-reverse;
    }
    
    .hp-btn-lg,
    .hp-btn-xl {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   ROOM FORMS (STEP 2)
   ============================================ */

.hp-room-form {
    background: linear-gradient(135deg, var(--clr-off-white) 0%, var(--clr-white) 100%);
    border: 1px solid var(--clr-border-gray);
    border-radius: var(--hp-border-radius-lg);
    padding: var(--hp-spacing-xl);
    margin-bottom: var(--hp-spacing-lg);
    position: relative;
    transition: all var(--hp-transition-base);
    box-shadow: var(--hp-shadow-sm);
}

.hp-room-form:hover {
    box-shadow: var(--hp-shadow-md);
    border-color: var(--clr-primary-light);
}

.hp-room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--hp-spacing-lg);
    padding-bottom: var(--hp-spacing-md);
    border-bottom: 2px solid var(--clr-border-gray);
}

.hp-room-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    gap: var(--hp-spacing-sm);
}

.hp-room-title::before {
    content: '🏠';
    font-size: 1.5rem;
}

/* Subsections */
.hp-subsection {
    margin-top: var(--hp-spacing-lg);
    padding: var(--hp-spacing-lg);
    background: var(--clr-white);
    border-radius: var(--hp-border-radius-md);
    border: 1px solid var(--clr-border-gray);
}

.hp-subsection-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: var(--hp-spacing-md);
    display: flex;
    align-items: center;
    gap: var(--hp-spacing-sm);
}

/* Dynamic Lists */
.hp-dynamic-list {
    display: flex;
    flex-direction: column;
    gap: var(--hp-spacing-md);
    margin-bottom: var(--hp-spacing-md);
}

.hp-dynamic-item {
    display: flex;
    align-items: center;
    gap: var(--hp-spacing-md);
    padding: var(--hp-spacing-md);
    background: var(--clr-light-gray);
    border-radius: var(--hp-border-radius-md);
    border: 1px solid var(--clr-border-gray);
    transition: all var(--hp-transition-base);
}

.hp-dynamic-item:hover {
    background: var(--clr-off-white);
    border-color: var(--clr-primary-light);
}

.hp-dynamic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--hp-spacing-sm);
    flex: 1;
}

@media (max-width: 1024px) {
    .hp-dynamic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hp-dynamic-grid {
        grid-template-columns: 1fr;
    }
    
    .hp-dynamic-item {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Room Calculations */
.hp-room-calculations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--hp-spacing-md);
    margin-top: var(--hp-spacing-lg);
    padding: var(--hp-spacing-lg);
    background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%);
    border-radius: var(--hp-border-radius-md);
    color: var(--clr-white);
}

.hp-calc-item {
    text-align: center;
    padding: var(--hp-spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--hp-border-radius-sm);
    backdrop-filter: blur(10px);
}

.hp-calc-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-bottom: var(--hp-spacing-xs);
}

.hp-calc-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .hp-room-calculations {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   REVIEW SECTION (STEP 3)
   ============================================ */

.hp-review-section {
    background: var(--clr-off-white);
    border-radius: var(--hp-border-radius-lg);
    padding: var(--hp-spacing-xl);
    margin-bottom: var(--hp-spacing-xl);
}

.hp-review-header {
    display: flex;
    align-items: center;
    gap: var(--hp-spacing-md);
    padding: var(--hp-spacing-lg);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--clr-white);
    border-radius: var(--hp-border-radius-md);
    margin-bottom: var(--hp-spacing-xl);
    font-weight: 600;
    box-shadow: var(--hp-shadow-md);
}

.hp-review-badge {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--hp-border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.hp-review-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--hp-spacing-xl);
    margin-bottom: var(--hp-spacing-xl);
}

@media (max-width: 968px) {
    .hp-review-grid {
        grid-template-columns: 1fr;
    }
}

.hp-review-card {
    background: var(--clr-white);
    border-radius: var(--hp-border-radius-lg);
    padding: var(--hp-spacing-xl);
    box-shadow: var(--hp-shadow-sm);
    border: 1px solid var(--clr-border-gray);
}

.hp-review-card-highlight {
    background: linear-gradient(135deg, var(--clr-white) 0%, var(--clr-off-white) 100%);
    border: 2px solid var(--clr-primary);
    position: relative;
    overflow: hidden;
}

.hp-review-card-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
}

.hp-review-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: var(--hp-spacing-lg);
    padding-bottom: var(--hp-spacing-md);
    border-bottom: 1px solid var(--clr-border-gray);
}

.hp-review-item {
    display: flex;
    justify-content: space-between;
    padding: var(--hp-spacing-sm) 0;
    border-bottom: 1px solid var(--clr-border-gray);
}

.hp-review-item:last-child {
    border-bottom: none;
}

.hp-review-label {
    color: var(--clr-mid-gray);
    font-weight: 500;
}

.hp-review-value {
    font-weight: 700;
    color: #1a1a2e;
}

/* Heat Loss Display */
.hp-heat-loss-display {
    text-align: center;
    padding: var(--hp-spacing-xl);
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
    border-radius: var(--hp-border-radius-lg);
    color: var(--clr-white);
    margin-bottom: var(--hp-spacing-lg);
}

.hp-heat-loss-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--hp-spacing-sm);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hp-heat-loss-sub {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: var(--hp-spacing-md);
}

.hp-heat-loss-density {
    font-size: 0.875rem;
    opacity: 0.8;
    padding-top: var(--hp-spacing-md);
    border-top: 1px solid rgba(255,255,255,0.2);
}

.hp-compliance-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: var(--hp-spacing-md);
    border-radius: var(--hp-border-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Rooms Review */
.hp-rooms-review {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--hp-spacing-md);
}

.hp-room-review-item {
    background: var(--clr-white);
    padding: var(--hp-spacing-lg);
    border-radius: var(--hp-border-radius-md);
    border: 1px solid var(--clr-border-gray);
    transition: all var(--hp-transition-base);
}

.hp-room-review-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--hp-shadow-md);
    border-color: var(--clr-primary-light);
}

.hp-room-review-item h5 {
    color: var(--clr-primary);
    font-weight: 700;
    margin-bottom: var(--hp-spacing-sm);
    font-size: 1rem;
}

.hp-room-review-item p {
    color: var(--clr-mid-gray);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   RESULTS SECTION (STEP 4)
   ============================================ */

.hp-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--hp-spacing-lg);
    margin-bottom: var(--hp-spacing-2xl);
}

.hp-result-card {
    background: var(--clr-white);
    border-radius: var(--hp-border-radius-lg);
    padding: var(--hp-spacing-xl);
    text-align: center;
    border: 1px solid var(--clr-border-gray);
    transition: all var(--hp-transition-base);
    position: relative;
    overflow: hidden;
}

.hp-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--clr-border-gray);
    transition: all var(--hp-transition-base);
}

.hp-result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow-xl);
}

.hp-result-card:hover::before {
    background: var(--clr-primary);
}

.hp-result-primary::before {
    background: var(--clr-primary);
}

.hp-result-success::before {
    background: #10b981;
}

.hp-result-icon {
    font-size: 2.5rem;
    margin-bottom: var(--hp-spacing-md);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.hp-result-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: var(--hp-spacing-xs);
    line-height: 1.2;
}

.hp-result-label {
    font-size: 0.875rem;
    color: var(--clr-mid-gray);
    font-weight: 500;
}

.hp-result-primary {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
    color: var(--clr-white);
    border: none;
}

.hp-result-primary .hp-result-value,
.hp-result-primary .hp-result-label {
    color: var(--clr-white);
}

.hp-result-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--clr-white);
    border: none;
}

.hp-result-success .hp-result-value,
.hp-result-success .hp-result-label {
    color: var(--clr-white);
}

@media (max-width: 1024px) {
    .hp-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hp-results-grid {
        grid-template-columns: 1fr;
    }
}

/* System Breakdown */
.hp-system-breakdown {
    background: var(--clr-off-white);
    border-radius: var(--hp-border-radius-lg);
    padding: var(--hp-spacing-xl);
    margin-bottom: var(--hp-spacing-2xl);
}

.hp-breakdown-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: var(--hp-spacing-lg);
    text-align: center;
}

.hp-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--hp-spacing-lg);
    max-width: 600px;
    margin: 0 auto;
}

.hp-breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: var(--hp-spacing-md) var(--hp-spacing-lg);
    background: var(--clr-white);
    border-radius: var(--hp-border-radius-md);
    border: 1px solid var(--clr-border-gray);
}

@media (max-width: 640px) {
    .hp-breakdown-grid {
        grid-template-columns: 1fr;
    }
}

/* Equipment Section */
.hp-equipment-section {
    margin-bottom: var(--hp-spacing-2xl);
}

.hp-equipment-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: var(--hp-spacing-xl);
    text-align: center;
}

.hp-equipment-card {
    background: var(--clr-white);
    border-radius: var(--hp-border-radius-lg);
    padding: var(--hp-spacing-xl);
    margin-bottom: var(--hp-spacing-lg);
    border: 1px solid var(--clr-border-gray);
    box-shadow: var(--hp-shadow-sm);
    transition: all var(--hp-transition-base);
}

.hp-equipment-card:hover {
    box-shadow: var(--hp-shadow-md);
    border-color: var(--clr-primary-light);
}

.hp-equipment-header {
    display: flex;
    align-items: center;
    gap: var(--hp-spacing-md);
    margin-bottom: var(--hp-spacing-lg);
    padding-bottom: var(--hp-spacing-md);
    border-bottom: 2px solid var(--clr-border-gray);
}

.hp-equipment-header h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--clr-primary);
}

.hp-equipment-icon {
    font-size: 1.75rem;
    width: 48px;
    height: 48px;
    background: var(--clr-off-white);
    border-radius: var(--hp-border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-equipment-specs {
    display: grid;
    gap: var(--hp-spacing-md);
}

.hp-spec-item {
    display: flex;
    align-items: center;
    gap: var(--hp-spacing-md);
    flex-wrap: wrap;
    padding: var(--hp-spacing-sm) 0;
    border-bottom: 1px solid var(--clr-border-gray);
}

.hp-spec-item:last-child {
    border-bottom: none;
}

.hp-spec-label {
    font-weight: 600;
    color: var(--clr-mid-gray);
    min-width: 140px;
}

.hp-spec-value {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1.125rem;
}

.hp-spec-note {
    color: var(--clr-mid-gray);
    font-size: 0.875rem;
    font-style: italic;
}

.hp-components-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--hp-spacing-md);
}

.hp-components-list li {
    padding: var(--hp-spacing-md);
    background: var(--clr-off-white);
    border-radius: var(--hp-border-radius-md);
    border-left: 3px solid var(--clr-primary);
    font-weight: 500;
    color: #374151;
    position: relative;
    padding-left: 2.5rem;
}

.hp-components-list li::before {
    content: '✓';
    position: absolute;
    left: var(--hp-spacing-md);
    color: var(--clr-primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .hp-components-list {
        grid-template-columns: 1fr;
    }
    
    .hp-spec-label {
        min-width: 100%;
        margin-bottom: var(--hp-spacing-xs);
    }
}

/* Grant Banner */
.hp-grant-banner {
    display: flex;
    align-items: center;
    gap: var(--hp-spacing-lg);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a1a2e;
    padding: var(--hp-spacing-xl);
    border-radius: var(--hp-border-radius-lg);
    margin-bottom: var(--hp-spacing-2xl);
    box-shadow: var(--hp-shadow-md);
    position: relative;
    overflow: hidden;
}

.hp-grant-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hp-grant-icon {
    font-size: 3rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.hp-grant-content {
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 500;
}

@media (max-width: 640px) {
    .hp-grant-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   STEP 5 - USER DETAILS (NEW)
   ============================================ */

.hp-contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.hp-contact-grid {
    display: grid;
    gap: var(--hp-spacing-lg);
}

.hp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--hp-spacing-lg);
}

@media (max-width: 640px) {
    .hp-form-row {
        grid-template-columns: 1fr;
    }
}

.hp-input-group {
    position: relative;
}

.hp-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    opacity: 0.6;
    pointer-events: none;
    transition: opacity var(--hp-transition-base);
}

.hp-form-input.with-icon {
    padding-left: 3rem;
}

.hp-form-input.with-icon:focus + .hp-input-icon,
.hp-input-group:focus-within .hp-input-icon {
    opacity: 1;
    color: var(--clr-primary);
}

.hp-privacy-notice {
    background: var(--clr-off-white);
    border-radius: var(--hp-border-radius-md);
    padding: var(--hp-spacing-lg);
    margin-top: var(--hp-spacing-xl);
    border: 1px solid var(--clr-border-gray);
    display: flex;
    align-items: flex-start;
    gap: var(--hp-spacing-md);
}

.hp-privacy-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hp-privacy-text {
    font-size: 0.875rem;
    color: var(--clr-mid-gray);
    line-height: 1.6;
    margin: 0;
}

.hp-privacy-text strong {
    color: #1a1a2e;
    display: block;
    margin-bottom: var(--hp-spacing-xs);
}

/* Success Animation */
.hp-success-animation {
    text-align: center;
    padding: var(--hp-spacing-2xl);
}

.hp-success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: var(--hp-border-radius-full);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--hp-spacing-xl);
    font-size: 2.5rem;
    color: var(--clr-white);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hp-success-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: var(--hp-spacing-md);
}

.hp-success-message {
    font-size: 1.125rem;
    color: var(--clr-mid-gray);
    max-width: 500px;
    margin: 0 auto var(--hp-spacing-xl);
    line-height: 1.6;
}

/* ============================================
   LOADING & UTILITY STATES
   ============================================ */

.hp-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.hp-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--clr-border-gray);
    border-top-color: var(--clr-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Focus visible for accessibility */
.hp-form-input:focus-visible,
.hp-form-select:focus-visible,
.hp-btn:focus-visible {
    outline: 2px solid var(--clr-primary);
    outline-offset: 2px;
}

/* Validation states */
.hp-form-input.error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.hp-form-input.error:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.hp-error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: var(--hp-spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--hp-spacing-xs);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .hp-wizard-container {
        background: white;
    }
    
    .hp-step-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .hp-btn {
        display: none;
    }
}