/* NFH Widget Styles */
.nfh-widget-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border: 1.5px solid #e53935;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* Header */
.nfh-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 12px;
    background: #fff;
}

.nfh-back-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background 0.2s;
    line-height: 1;
}
.nfh-back-btn:hover { background: #f5f5f5; }

.nfh-logo svg { display: block; }

.nfh-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #222;
}

/* Progress Bar */
.nfh-progress-bar {
    position: relative;
    height: 8px;
    background: #eee;
    margin: 0 20px 0;
}
.nfh-progress-fill {
    height: 100%;
    background: #e53935;
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 7.69%;
}
.nfh-progress-dots {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}
.nfh-progress-dot {
    width: 10px;
    height: 10px;
    background: #009688;
    border-radius: 50%;
    border: 2px solid #fff;
    transition: background 0.3s;
}
.nfh-progress-dot.done { background: #e53935; }
.nfh-progress-dot.active { background: #e53935; box-shadow: 0 0 0 3px rgba(229,57,53,0.3); }

/* Price Display */
.nfh-price-display {
    text-align: right;
    padding: 8px 20px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.nfh-price-display span { color: #e53935; }

/* Steps Container */
.nfh-steps-container {
    padding: 20px 20px 24px;
    min-height: 320px;
}

/* Step visibility */
.nfh-step { display: none; }
.nfh-step.active { display: block; }

/* Question */
.nfh-question {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 16px;
}
.nfh-sub {
    font-weight: 400;
    font-size: 14px;
    color: #666;
}

/* Option Buttons */
.nfh-option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nfh-option-btn {
    background: #f5f5f5;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-family: inherit;
}
.nfh-option-btn:hover {
    border-color: #009688;
    background: #e0f2f1;
    color: #00695c;
}
.nfh-option-btn.selected {
    border-color: #e53935;
    background: #ffebee;
    color: #c62828;
    font-weight: 600;
}
.nfh-option-multi {
    text-align: left;
    font-size: 14px;
    line-height: 1.4;
}

/* Text Input */
.nfh-text-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    margin-bottom: 10px;
}
.nfh-text-input:focus { border-color: #009688; }

/* Textarea */
.nfh-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 14px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
    margin-bottom: 12px;
}
.nfh-textarea:focus { border-color: #009688; }

/* Autocomplete */
.nfh-autocomplete-wrap { position: relative; margin-bottom: 10px; }
.nfh-autocomplete-wrap .nfh-text-input { margin-bottom: 0; }
.nfh-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #ccc;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.nfh-dropdown.open { display: block; }
.nfh-dropdown-item {
    padding: 12px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.nfh-dropdown-item:hover { background: #f5f5f5; }
.nfh-dropdown-item:last-child { border-bottom: none; }

/* Buttons */
.nfh-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    margin-top: 16px;
}
.nfh-btn-primary {
    background: #e53935;
    color: #fff;
}
.nfh-btn-primary:hover { background: #c62828; }
.nfh-btn-disabled {
    background: #bdbdbd;
    color: #fff;
    cursor: not-allowed;
    pointer-events: none;
}
.nfh-btn-disabled.active {
    background: #e53935;
    pointer-events: auto;
    cursor: pointer;
}

/* Checkbox */
.nfh-checkbox-wrap { margin-top: 14px; }
.nfh-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}
.nfh-checkbox-label input[type=checkbox] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #e53935;
}

/* Note */
.nfh-note {
    font-size: 12px;
    color: #777;
    margin: 12px 0 0;
    line-height: 1.5;
}

/* Mid screen */
.nfh-midscreen { text-align: left; }
.nfh-midscreen p { font-size: 14px; color: #555; margin: 0 0 12px; line-height: 1.6; }
.nfh-stats { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.nfh-stat-row { display: flex; align-items: center; gap: 14px; }
.nfh-truck-icon, .nfh-star-icon { font-size: 32px; }
.nfh-stat-text { font-size: 16px; color: #333; }
.nfh-stat-text strong { font-size: 20px; font-weight: 700; color: #222; display: block; }

/* Price card */
.nfh-price-card {
    background: #fafafa;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 4px;
}
.nfh-price-card h4 { margin: 0 0 10px; font-size: 15px; color: #333; }
.nfh-chart-svg { width: 100%; height: auto; }
.nfh-brand-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin-top: 8px;
    color: #333;
}
.nfh-price-note { font-size: 13px; color: #666; margin: 12px 0 0; line-height: 1.5; }

/* Upload button */
.nfh-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #00acc1;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.nfh-upload-btn:hover { background: #00838f; }

/* Photo preview */
.nfh-foto-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.nfh-foto-preview img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1.5px solid #ccc;
}

/* Calendar */
.nfh-calendar-wrap { margin-top: 12px; }
.nfh-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.nfh-cal-nav {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 16px;
}
.nfh-cal-title { font-weight: 600; font-size: 14px; }
.nfh-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.nfh-cal-day-name {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    padding: 4px 0;
}
.nfh-cal-day {
    text-align: center;
    padding: 7px 0;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    color: #333;
    transition: background 0.15s;
}
.nfh-cal-day:hover { background: #ffebee; }
.nfh-cal-day.today { font-weight: 700; color: #e53935; }
.nfh-cal-day.selected { background: #e53935; color: #fff; }
.nfh-cal-day.in-range { background: #ffcdd2; }
.nfh-cal-day.empty { cursor: default; }
.nfh-cal-day.past { color: #ccc; cursor: default; }

/* Site add link */
.nfh-site-add {
    margin-top: 20px;
    font-size: 13px;
    color: #009688;
    cursor: pointer;
    text-decoration: underline;
}

/* Success */
.nfh-success { text-align: center; padding: 30px 0; }
.nfh-success-icon { font-size: 48px; margin-bottom: 16px; }
.nfh-success h3 { font-size: 20px; margin: 0 0 12px; color: #222; }
.nfh-success p { font-size: 15px; color: #555; }

/* Responsive */
@media (max-width: 480px) {
    .nfh-widget-wrapper { border-radius: 8px; }
    .nfh-title { font-size: 15px; }
    .nfh-question { font-size: 15px; }
    .nfh-option-btn { font-size: 14px; padding: 12px 16px; }
}
