/* Fiber Search Page — البحث عن الفايبر */

.fiber-search-hero {
    background: linear-gradient(135deg, #0f172a 0%, #4f008c 50%, #7c3aed 100%);
    position: relative;
    overflow: hidden;
}

.fiber-search-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(132, 204, 22, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(168, 85, 247, 0.18) 0%, transparent 45%);
    pointer-events: none;
}

.fiber-search-app {
    max-width: 960px;
    margin: 0 auto;
}

.fiber-step-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .fiber-step-tabs {
        grid-template-columns: 1fr;
    }
}

.fiber-step-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 2px solid #e2e8f0;
    background: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: default;
}

.dark .fiber-step-tab {
    background: #1e293b;
    border-color: #334155;
}

.fiber-step-tab.is-active {
    border-color: #4f008c;
    background: rgba(79, 0, 140, 0.06);
    color: #4f008c;
}

.fiber-step-tab.is-done {
    border-color: #84cc16;
    color: #3f6212;
}

.fiber-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(79, 0, 140, 0.1);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(30, 9, 54, 0.08);
}

.dark .fiber-card {
    background: rgba(30, 41, 59, 0.98);
    border-color: rgba(255, 255, 255, 0.08);
}

.coverage-result {
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.coverage-result[data-level="likely"] {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.coverage-result[data-level="possible"] {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.coverage-result[data-level="unknown"],
.coverage-result[data-level="pending"] {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.panel-diagram {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 768px) {
    .panel-diagram {
        grid-template-columns: 1fr;
    }
}

.panel-visual {
    background: linear-gradient(160deg, #f8fafc, #e2e8f0);
    border: 2px dashed #94a3b8;
    border-radius: 1.25rem;
    padding: 1.5rem;
    text-align: center;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.dark .panel-visual {
    background: linear-gradient(160deg, #0f172a, #1e293b);
    border-color: #475569;
}

.panel-box-icon {
    width: 120px;
    height: 90px;
    background: linear-gradient(180deg, #64748b, #475569);
    border-radius: 0.5rem;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.2), 0 8px 20px rgba(0,0,0,0.2);
}

.panel-box-icon::before {
    content: 'FDT / ODP';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 0.05em;
}

.panel-box-icon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 6px;
    background: #334155;
    border-radius: 2px;
}

.guide-step {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.dark .guide-step {
    border-bottom-color: #334155;
}

.guide-step:last-child {
    border-bottom: none;
}

.guide-step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    background: #4f008c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.fiber-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #4f008c;
    font-weight: 700;
    font-size: 0.875rem;
}

.panel-preview {
    margin-top: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    max-height: 240px;
}

.panel-preview img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.fiber-hidden {
    display: none !important;
}

.form-group input.location-input,
input.location-input {
    padding-left: 140px;
}

@media (max-width: 768px) {
    input.location-input {
        padding-left: 60px;
    }
}

.fiber-step-panel.is-active {
    animation: fiberFadeIn 0.35s ease;
}

@keyframes fiberFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fiber-whatsapp-quick {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    animation: whatsappPulse 2.5s ease-in-out infinite;
}

.fiber-whatsapp-quick:hover {
    background: linear-gradient(135deg, #1ea952 0%, #075E54 100%);
    animation: none;
}

.fiber-whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35); }
    50% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55); }
}
