/* ================================================================
   Makro Prefabrik — Fiyat Hesaplama Sihirbazı
   ================================================================ */

.fhp-wrap {
    max-width: 860px;
    margin: 40px auto 60px;
    font-family: var(--regular, sans-serif);
    color: var(--color3, #1c1c0e);
}

/* ── İlerleme ─────────────────────────────────────────────────── */

.fhp-progress-wrap {
    margin-bottom: 40px;
}

.fhp-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.fhp-ps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
}

.fhp-ps-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #999;
    font-size: 13px;
    font-family: var(--medium, sans-serif);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}

.fhp-ps.active .fhp-ps-dot,
.fhp-ps.done .fhp-ps-dot {
    background: var(--color2, #717809);
    color: #fff;
}

.fhp-ps.done .fhp-ps-dot::before {
    content: '✓';
}

.fhp-ps.done .fhp-ps-dot { font-size: 0; }
.fhp-ps.done .fhp-ps-dot::before { font-size: 14px; }

.fhp-ps-label {
    font-size: 11px;
    opacity: 0.55;
    white-space: nowrap;
}

.fhp-ps.active .fhp-ps-label {
    opacity: 1;
    color: var(--color2, #717809);
    font-family: var(--medium, sans-serif);
}

.fhp-progress-bar-outer {
    height: 4px;
    background: #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
}

.fhp-progress-bar-inner {
    height: 100%;
    background: var(--color2, #717809);
    border-radius: 2px;
    transition: width 0.35s ease;
}

/* ── Adımlar ──────────────────────────────────────────────────── */

.fhp-step { display: none; }
.fhp-step.active {
    display: block;
    animation: fhpFadeIn 0.25s ease;
}

@keyframes fhpFadeIn {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.fhp-step-title {
    font-size: 22px;
    font-family: var(--medium, sans-serif);
    margin-bottom: 28px;
    color: var(--color3, #1c1c0e);
}

/* ── Alan etiketi ─────────────────────────────────────────────── */

.fhp-field {
    margin-bottom: 28px;
}

.fhp-field-label {
    font-size: 14px;
    font-family: var(--medium, sans-serif);
    margin-bottom: 12px;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fhp-optional {
    font-family: var(--regular, sans-serif);
    text-transform: none;
    opacity: 0.6;
    font-size: 12px;
    letter-spacing: 0;
}

/* ── Seçenek Kartları ─────────────────────────────────────────── */

.fhp-cards {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}

.fhp-cards--wrap { flex-wrap: wrap; }

.fhp-card {
    flex: 1;
    min-width: 120px;
    padding: 16px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    position: relative;
    user-select: none;
}

.fhp-card--sm {
    flex: 0 1 calc(33.333% - 8px);
    min-width: 100px;
}

.fhp-card:hover {
    border-color: var(--color2, #717809);
    background: #fafff5;
    color: inherit !important;
    background-color: #fafff5 !important;
}

.fhp-card.selected {
    border-color: var(--color2, #717809);
    background: #fafff5;
    box-shadow: 0 0 0 3px rgba(113,120,9,0.12);
}

.fhp-card.selected::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 11px;
    color: var(--color2, #717809);
    font-family: var(--medium, sans-serif);
}

.fhp-card-icon {
    font-size: 28px;
    margin-bottom: 8px;
    line-height: 1;
}

.fhp-card-title {
    font-family: var(--medium, sans-serif);
    font-size: 14px;
    margin-bottom: 4px;
}

.fhp-card-desc {
    font-size: 12px;
    opacity: 0.55;
}

.fhp-card-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 8px;
    background: var(--color1, #f3f5fd);
    border-radius: 20px;
    font-size: 11px;
    color: var(--color2, #717809);
    font-family: var(--medium, sans-serif);
}

/* ── Özel m² inputu ───────────────────────────────────────────── */

.fhp-custom-m2 { margin-top: 12px; }

.fhp-input,
.fhp-select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--regular, sans-serif);
    color: var(--color3, #1c1c0e);
    background: var(--color1, #f3f5fd);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.fhp-input:focus,
.fhp-select:focus {
    border-color: var(--color2, #717809);
    background: #fff;
}

/* ── Navigasyon ───────────────────────────────────────────────── */

.fhp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #ebebeb;
}

.fhp-nav-dots {
    display: flex;
    gap: 8px;
}

.fhp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.fhp-dot.active {
    background: var(--color2, #717809);
    transform: scale(1.3);
}

.fhp-btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--medium, sans-serif);
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.fhp-btn--primary {
    background: var(--color2, #717809);
    color: #fff;
}

.fhp-btn--primary:hover { background: var(--color3, #1c1c0e); }

.fhp-btn--ghost {
    background: transparent;
    color: var(--color3, #1c1c0e);
    border: 1.5px solid #ddd;
}

.fhp-btn--ghost:hover {
    border-color: var(--color3, #1c1c0e);
    background: transparent;
    color: inherit;
    background-color: transparent !important;
}

/* ── Sonuç ────────────────────────────────────────────────────── */

.fhp-result { animation: fhpFadeIn 0.35s ease; }

.fhp-result-header {
    text-align: center;
    background: linear-gradient(135deg, var(--color3, #1c1c0e) 0%, #3d4204 100%);
    color: #fff;
    border-radius: 14px;
    padding: 40px 30px;
    margin-bottom: 28px;
}

.fhp-result-label {
    font-size: 14px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.fhp-result-price {
    font-size: 48px;
    font-family: var(--medium, sans-serif);
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.fhp-result-price span {
    color: #b8d000;
}

.fhp-result-range {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 12px;
}

.fhp-result-note {
    font-size: 12px;
    opacity: 0.5;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 8px 14px;
    display: inline-block;
}

/* Dahil / Dahil Değil */
.fhp-result-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.fhp-result-col {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 20px;
}

.fhp-result-section-title {
    font-family: var(--medium, sans-serif);
    font-size: 13px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fhp-included { color: var(--color2, #717809); }
.fhp-excluded { color: #c0392b; }

.fhp-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fhp-checklist li {
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.fhp-checklist--yes li::before {
    content: '✓';
    color: var(--color2, #717809);
    flex-shrink: 0;
    margin-top: 1px;
}

.fhp-checklist--no li::before {
    content: '✗';
    color: #c0392b;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Kırılım tablosu */
.fhp-breakdown {
    background: var(--color1, #f3f5fd);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    font-size: 13px;
}

.fhp-breakdown-title {
    font-family: var(--medium, sans-serif);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    margin-bottom: 14px;
}

.fhp-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #e8e8e8;
}

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

.fhp-breakdown-row.total {
    font-family: var(--medium, sans-serif);
    font-size: 15px;
    border-top: 2px solid var(--color2, #717809);
    padding-top: 12px;
    margin-top: 4px;
    color: var(--color2, #717809);
}

/* CTA */
.fhp-cta {
    text-align: center;
    padding: 28px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    margin-bottom: 20px;
}

.fhp-cta-text {
    font-size: 15px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.fhp-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.fhp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 8px;
    font-family: var(--medium, sans-serif);
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fhp-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    background-color: inherit !important;
    color: #fff !important;
}

.fhp-cta-btn--call {
    background: var(--color2, #717809);
    color: #fff !important;
}

.fhp-cta-btn--wp {
    background: #25d366;
    color: #fff !important;
}

.fhp-cta-btn--form {
    background: var(--color3, #1c1c0e);
    color: #fff !important;
}

.fhp-restart {
    display: block;
    margin: 0 auto;
    background: transparent;
    border: 1.5px solid #ddd;
    color: var(--color3, #1c1c0e);
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.fhp-restart:hover {
    border-color: var(--color2, #717809);
    background: transparent !important;
    color: var(--color2, #717809) !important;
    background-color: transparent !important;
}

/* Hata durumu */
.fhp-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #856404;
    margin-bottom: 16px;
    display: none;
}

.fhp-error.visible { display: block; }

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 640px) {
    .fhp-cards { flex-wrap: wrap; }
    .fhp-card  { min-width: calc(50% - 6px); flex: 0 1 calc(50% - 6px); }
    .fhp-card--sm { flex: 0 1 calc(50% - 6px); }
    .fhp-result-body { grid-template-columns: 1fr; }
    .fhp-result-price { font-size: 32px; }
    .fhp-ps-label { display: none; }
    .fhp-cta-buttons { flex-direction: column; }
    .fhp-cta-btn { justify-content: center; }
}
