/* ═══════════════════════════════════════════════════════════
   Mile High Patio – Pergola Price Calculator Styles
   Brand: Dark navy #1c1c2c | Gold #c8a84b | White #ffffff
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────── */
.mhp-calc-container *,
.mhp-calc-container *::before,
.mhp-calc-container *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.mhp-calc-container {
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 860px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    overflow: hidden;
    color: #333;
}

/* ── Header ───────────────────────────────────────────────── */
.mhp-calc-header {
    background: #1c1c2c;
    padding: 36px 40px;
    text-align: center;
    background-image: linear-gradient(135deg, #1c1c2c 0%, #2d2d45 100%);
}

.mhp-calc-header h2 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.mhp-calc-header p {
    color: #c8a84b;
    font-size: 15px;
    opacity: 0.9;
}

/* ── Progress Bar ─────────────────────────────────────────── */
.mhp-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 40px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    gap: 0;
}

.mhp-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: default;
    min-width: 70px;
}

.mhp-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ddd;
    color: #999;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #ddd;
}

.mhp-progress-step span {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.mhp-progress-step.active .mhp-step-circle {
    background: #c8a84b;
    border-color: #c8a84b;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(200,168,75,0.2);
}

.mhp-progress-step.active span {
    color: #c8a84b;
}

.mhp-progress-step.completed .mhp-step-circle {
    background: #1c1c2c;
    border-color: #1c1c2c;
    color: #fff;
}

.mhp-progress-step.completed span {
    color: #1c1c2c;
}

.mhp-progress-line {
    flex: 1;
    height: 2px;
    background: #ddd;
    margin: 0 4px;
    margin-bottom: 22px;
    max-width: 80px;
    transition: background 0.3s;
}

/* ── Step Panels ──────────────────────────────────────────── */
.mhp-step {
    display: none;
    padding: 36px 40px;
    animation: mhpFadeIn 0.3s ease;
}

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

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

.mhp-step-title {
    font-size: 20px;
    font-weight: 700;
    color: #1c1c2c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mhp-step-num {
    width: 32px;
    height: 32px;
    background: #c8a84b;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.mhp-step-subtitle {
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
}

/* ── Field Groups ─────────────────────────────────────────── */
.mhp-field-group {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.mhp-three-col { grid-template-columns: repeat(3, 1fr); }
.mhp-two-col   { grid-template-columns: repeat(2, 1fr); }

.mhp-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mhp-field input[type="number"],
.mhp-field input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
    -moz-appearance: textfield;
}

.mhp-field input::-webkit-outer-spin-button,
.mhp-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mhp-field input:focus {
    outline: none;
    border-color: #c8a84b;
    box-shadow: 0 0 0 3px rgba(200,168,75,0.15);
    background: #fff;
}

.mhp-field input.mhp-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.req { color: #e74c3c; }
.optional { color: #999; font-weight: 400; font-size: 11px; }

/* ── SF Display ───────────────────────────────────────────── */
.mhp-sf-display {
    background: linear-gradient(135deg, #1c1c2c, #2d2d45);
    color: #c8a84b;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
    margin-top: 8px;
}

.mhp-sf-display strong {
    font-size: 20px;
    color: #fff;
}

/* ── Card Options (Placement / Foundation) ────────────────── */
.mhp-card-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mhp-option-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    background: #fafafa;
}

.mhp-option-card:hover {
    border-color: #c8a84b;
    background: #fffdf5;
    transform: translateY(-2px);
}

.mhp-option-card.selected {
    border-color: #c8a84b;
    background: linear-gradient(135deg, #fffdf5, #fff8e7);
    box-shadow: 0 4px 16px rgba(200,168,75,0.2);
}

.mhp-option-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.mhp-option-label {
    font-weight: 700;
    font-size: 13px;
    color: #1c1c2c;
    margin-bottom: 4px;
}

.mhp-option-desc {
    font-size: 11px;
    color: #888;
}

/* ── Style Cards ──────────────────────────────────────────── */
.mhp-style-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.mhp-style-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.mhp-style-card:hover {
    border-color: #c8a84b;
    background: #fffdf5;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(200,168,75,0.15);
}

.mhp-style-card.selected {
    border-color: #c8a84b;
    background: linear-gradient(160deg, #fffdf5, #fff8e7);
    box-shadow: 0 8px 30px rgba(200,168,75,0.25);
}

.mhp-style-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #c8a84b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 0 12px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mhp-style-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.mhp-style-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1c1c2c;
    margin-bottom: 10px;
}

.mhp-style-card p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 14px;
}

.mhp-style-price {
    background: #1c1c2c;
    color: #c8a84b;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    display: inline-block;
}

/* ── Add-Ons Grid ─────────────────────────────────────────── */
.mhp-addons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.mhp-addon-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background: #fafafa;
    transition: border-color 0.2s;
}

.mhp-addon-card.addon-active {
    border-color: #c8a84b;
    background: #fffdf5;
}

.mhp-addon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mhp-addon-name {
    font-weight: 700;
    font-size: 14px;
    color: #1c1c2c;
}

.mhp-addon-rate {
    font-size: 12px;
    font-weight: 700;
    color: #c8a84b;
    background: #1c1c2c;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.mhp-addon-desc {
    font-size: 12px;
    color: #777;
    margin-bottom: 12px;
    line-height: 1.5;
}

.mhp-addon-input {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #ddd;
    animation: mhpFadeIn 0.2s ease;
}

.mhp-addon-input label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 8px;
}

.mhp-addon-input input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    -moz-appearance: textfield;
}

.mhp-addon-input input::-webkit-outer-spin-button,
.mhp-addon-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.mhp-addon-input input:focus {
    outline: none;
    border-color: #c8a84b;
    box-shadow: 0 0 0 3px rgba(200,168,75,0.15);
}

/* Toggle Switch */
.mhp-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.mhp-toggle-label input[type="checkbox"] {
    display: none;
}

.mhp-toggle-switch {
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    position: relative;
    transition: background 0.3s;
    flex-shrink: 0;
}

.mhp-toggle-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.mhp-toggle-label input:checked + .mhp-toggle-switch {
    background: #c8a84b;
}

.mhp-toggle-label input:checked + .mhp-toggle-switch::after {
    transform: translateX(20px);
}

/* Quantity Control */
.mhp-qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    width: 140px;
}

.mhp-qty-btn {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
    flex-shrink: 0;
}

.mhp-qty-btn:hover {
    background: #c8a84b;
    color: #fff;
}

.mhp-qty-control input[type="number"] {
    flex: 1;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    padding: 8px 4px;
    -moz-appearance: textfield;
    background: #fff;
}

.mhp-qty-control input::-webkit-outer-spin-button,
.mhp-qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.mhp-qty-control input:focus {
    outline: none;
}

/* ── Estimate Box ─────────────────────────────────────────── */
.mhp-estimate-box {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.mhp-estimate-header {
    background: #1c1c2c;
    padding: 14px 24px;
}

.mhp-estimate-header h4 {
    color: #c8a84b;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.mhp-estimate-body {
    padding: 8px 0;
}

.mhp-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid #f0f0f0;
}

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

.mhp-breakdown-sub {
    background: #fafafa;
}

.mhp-sub-label {
    font-size: 12px !important;
    color: #999 !important;
    font-style: italic;
}

.mhp-breakdown-label {
    font-size: 14px;
    color: #444;
}

.mhp-breakdown-value {
    font-size: 15px;
    font-weight: 700;
    color: #1c1c2c;
}

.mhp-addon-row .mhp-breakdown-label {
    color: #666;
}

.mhp-addon-row .mhp-breakdown-value {
    color: #c8a84b;
}

.mhp-estimate-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1c1c2c, #2d2d45);
}

.mhp-estimate-total span:first-child {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#mhp-total-price {
    color: #c8a84b;
    font-size: 32px;
    font-weight: 800;
}

.mhp-estimate-disclaimer {
    padding: 10px 24px;
    font-size: 11px;
    color: #999;
    background: #fafafa;
    border-top: 1px solid #eee;
    font-style: italic;
}

/* ── Specs Summary ────────────────────────────────────────── */
.mhp-specs-summary {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
    border: 1px solid #eee;
}

.mhp-specs-summary h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1c1c2c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.mhp-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mhp-specs-grid div {
    font-size: 13px;
    color: #555;
}

.mhp-specs-grid strong {
    color: #333;
}

/* ── Quote Form ───────────────────────────────────────────── */
.mhp-quote-form-wrap {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 28px 32px;
    border: 1px solid #eee;
    margin-bottom: 24px;
}

.mhp-quote-form-wrap h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1c1c2c;
    margin-bottom: 8px;
}

.mhp-quote-form-wrap > p {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

.mhp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.mhp-form-full {
    grid-column: 1 / -1;
}

.mhp-form-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mhp-form-field input[type="text"],
.mhp-form-field input[type="email"],
.mhp-form-field input[type="tel"],
.mhp-form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.mhp-form-field input:focus,
.mhp-form-field textarea:focus {
    outline: none;
    border-color: #c8a84b;
    box-shadow: 0 0 0 3px rgba(200,168,75,0.15);
}

.mhp-form-field input.mhp-error,
.mhp-form-field textarea.mhp-error {
    border-color: #e74c3c;
}

.mhp-form-field textarea {
    resize: vertical;
    min-height: 90px;
}

/* ── Form Messages ────────────────────────────────────────── */
.mhp-form-message {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.mhp-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mhp-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ── Buttons ──────────────────────────────────────────────── */
.mhp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.mhp-btn-primary,
.mhp-btn-next {
    background: linear-gradient(135deg, #c8a84b, #d4b55e);
    color: #1c1c2c;
    box-shadow: 0 4px 14px rgba(200,168,75,0.35);
}

.mhp-btn-primary:hover,
.mhp-btn-next:hover {
    background: linear-gradient(135deg, #b8982b, #c8a84b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200,168,75,0.45);
}

.mhp-btn-secondary,
.mhp-btn-prev {
    background: #f0f0f0;
    color: #555;
    border: 2px solid #ddd;
}

.mhp-btn-secondary:hover,
.mhp-btn-prev:hover {
    background: #e0e0e0;
    color: #333;
}

.mhp-btn-large {
    padding: 16px 36px;
    font-size: 16px;
    width: 100%;
}

.mhp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.mhp-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    gap: 12px;
}

.mhp-step-nav .mhp-btn:only-child {
    margin-left: auto;
}

.mhp-form-submit {
    text-align: center;
}

.mhp-form-note {
    margin-top: 12px;
    font-size: 12px;
    color: #999;
}

/* ── Success State ────────────────────────────────────────── */
.mhp-success-state {
    text-align: center;
    padding: 40px 20px;
}

.mhp-success-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.mhp-success-state h3 {
    font-size: 24px;
    color: #1c1c2c;
    margin-bottom: 12px;
}

.mhp-success-state p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 680px) {
    .mhp-calc-container {
        margin: 16px;
        border-radius: 12px;
    }

    .mhp-calc-header {
        padding: 24px 20px;
    }

    .mhp-calc-header h2 {
        font-size: 20px;
    }

    .mhp-step {
        padding: 24px 20px;
    }

    .mhp-three-col,
    .mhp-two-col {
        grid-template-columns: 1fr;
    }

    .mhp-style-cards {
        grid-template-columns: 1fr;
    }

    .mhp-addons-grid {
        grid-template-columns: 1fr;
    }

    .mhp-form-grid {
        grid-template-columns: 1fr;
    }

    .mhp-specs-grid {
        grid-template-columns: 1fr;
    }

    .mhp-progress-bar {
        padding: 16px 12px;
    }

    .mhp-progress-step span {
        font-size: 9px;
    }

    .mhp-step-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .mhp-progress-line {
        max-width: 30px;
    }

    #mhp-total-price {
        font-size: 24px;
    }

    .mhp-step-nav {
        flex-direction: column-reverse;
    }

    .mhp-btn {
        width: 100%;
        justify-content: center;
    }

    .mhp-quote-form-wrap {
        padding: 20px 16px;
    }
}
