/* RGIA Airport Funnel Zone Check — Tool Styles */
/* Prefix: raf- | Theme: #FF6725 (Orange) */

/* ===============================================
   HERO SECTION
   =============================================== */

.raf-search-hero {
    background: linear-gradient(135deg, #FF6725 0%, #ff8a50 50%, #ffab76 100%);
    padding: 40px 30px 30px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.raf-search-hero-decoration {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.raf-search-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.raf-search-hero-title {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.raf-search-hero-desc {
    color: rgba(255,255,255,0.92);
    font-size: 14px;
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.raf-search-hero-desc a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.raf-search-hero-desc a:hover {
    color: #fff;
    opacity: 0.85;
}

/* ===============================================
   SEARCH CARD
   =============================================== */

.raf-search-card {
    padding: 25px 30px;
    border-radius: 0 0 20px 20px !important;
}

/* ===============================================
   MAP CONTAINER
   =============================================== */

.raf-map-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.raf-map-container {
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #e8e8e8;
    position: relative;
}

.raf-map-container #raf-map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* Map overlay instruction */
.raf-map-instruction {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    font-size: 13px;
    color: #333;
    z-index: 800;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.raf-map-instruction i {
    color: #FF6725;
}

/* Map controls */
.raf-map-controls {
    position: absolute;
    bottom: 70px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 800;
}

.raf-control-btn {
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.raf-control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(255,103,37,0.3);
}

.raf-control-btn i {
    color: #FF6725;
    font-size: 18px;
}

.raf-control-btn.active {
    background: linear-gradient(135deg, #FF6725, #ff8a50);
}

.raf-control-btn.active i {
    color: white;
}

/* ===============================================
   COORDINATE INPUT FORM
   =============================================== */

.raf-coord-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

.raf-coord-form label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

/* ===============================================
   RESULT PANEL
   =============================================== */

.raf-result-panel {
    animation: fadeInUp 0.5s ease;
}

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

.raf-result-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.raf-result-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.raf-result-icon.in-zone {
    background: linear-gradient(135deg, #FF6725, #ff8a50);
}

.raf-result-icon.in-zone i {
    color: white;
    font-size: 24px;
}

.raf-result-icon.out-zone {
    background: linear-gradient(135deg, #28a745, #5dca70);
}

.raf-result-icon.out-zone i {
    color: white;
    font-size: 24px;
}

.raf-result-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px;
}

.raf-result-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Height display */
.raf-height-display {
    text-align: center;
    background: linear-gradient(135deg, #fff5f0, #fff0e8);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
}

.raf-height-value {
    font-size: 48px;
    font-weight: 800;
    color: #FF6725;
    line-height: 1;
    margin-bottom: 6px;
}

.raf-height-unit {
    font-size: 18px;
    font-weight: 500;
    color: #999;
}

.raf-height-label {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    font-weight: 500;
}

/* Info grid */
.raf-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.raf-info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.raf-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.raf-info-card .label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.raf-info-card .value {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

/* Status badge */
.raf-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

.raf-status-badge.in-zone {
    background: #fff3e0;
    color: #e65100;
}

.raf-status-badge.out-zone {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Nearby NOC section */
.raf-nearby-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.raf-nearby-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.raf-nearby-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.raf-nearby-item strong {
    color: #FF6725;
}

/* ===============================================
   LEGEND
   =============================================== */

.raf-legend {
    position: absolute;
    bottom: 70px;
    left: 15px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 800;
    max-width: 180px;
}

.raf-legend h6 {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.raf-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 11px;
    color: #555;
}

.raf-legend-item:last-child {
    margin-bottom: 0;
}

.raf-legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ===============================================
   REFERENCE TABLE
   =============================================== */

.raf-ref-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    border-radius: 12px;
    overflow: hidden;
}

.raf-ref-table thead th {
    background: #FF6725;
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    border: none;
}

.raf-ref-table tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.raf-ref-table tbody tr:last-child td {
    border-bottom: none;
}

.raf-ref-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.raf-ref-table tbody tr:hover {
    background: #fff5f0;
}

/* ===============================================
   INFO CARDS (ABOUT SECTION)
   =============================================== */

.raf-about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.raf-about-card {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 22px;
    transition: all 0.3s ease;
}

.raf-about-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.raf-about-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.raf-about-card h4 i {
    color: #FF6725;
    margin-right: 6px;
}

.raf-about-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ===============================================
   FAQ SECTION
   =============================================== */

.raf-faq-item {
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.raf-faq-item:hover {
    border-color: #ffd4bf;
}

.raf-faq-item.open {
    border-color: #FF6725;
    box-shadow: 0 4px 15px rgba(255,103,37,0.1);
}

.raf-faq-question {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.raf-faq-question i {
    color: #FF6725;
    font-size: 13px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.raf-faq-item.open .raf-faq-question i {
    transform: rotate(180deg);
}

.raf-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.raf-faq-item.open .raf-faq-answer {
    max-height: 500px;
    padding: 0 20px 16px;
}

.raf-faq-answer p {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* ===============================================
   RESPONSIVE
   =============================================== */

@media (max-width: 768px) {
    .raf-search-hero {
        padding: 30px 20px 25px;
    }

    .raf-search-hero-title {
        font-size: 20px;
    }

    .raf-search-card {
        padding: 20px 15px;
    }

    .raf-map-container {
        height: 380px;
    }

    .raf-info-grid {
        grid-template-columns: 1fr;
    }

    .raf-about-grid {
        grid-template-columns: 1fr;
    }

    .raf-height-value {
        font-size: 36px;
    }

    .raf-legend {
        display: none;
    }

    .raf-map-instruction {
        font-size: 11px;
        padding: 8px 16px;
    }

    .raf-ref-table {
        font-size: 12px;
    }

    .raf-ref-table thead th,
    .raf-ref-table tbody td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .raf-map-container {
        height: 300px;
    }

    .raf-search-hero-title {
        font-size: 18px;
    }
}
