/* Secunderabad Cantonment Zone Check — Tool Styles */
/* Prefix: scz- | Theme: #FF6725 (Orange) */

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

.scz-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;
}

.scz-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: sczRotate 30s linear infinite;
}

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

.scz-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;
}

.scz-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);
}

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

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

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

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

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

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

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

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

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

/* Map overlay instruction */
.scz-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;
}

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

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

.scz-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;
}

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

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

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

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

/* Search box on map */
.scz-search-box-wrap {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 60px;
    z-index: 800;
}

.scz-search-box {
    width: 100%;
    max-width: 350px;
    padding: 10px 16px 10px 38px;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    font-size: 13px;
    outline: none;
    background: white;
}

.scz-search-box::placeholder {
    color: #aaa;
}

.scz-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #FF6725;
    font-size: 13px;
}

.scz-search-results {
    position: absolute;
    top: 44px;
    left: 0;
    max-width: 350px;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 900;
}

.scz-search-results .scz-sr-item {
    padding: 10px 16px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.scz-search-results .scz-sr-item:hover {
    background: #fff5f0;
}

.scz-search-results .scz-sr-item:last-child {
    border-bottom: none;
}

/* Legend */
.scz-legend {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 800;
    font-size: 12px;
    min-width: 160px;
}

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

.scz-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

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

.scz-legend-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.scz-legend-item span {
    color: #555;
    font-size: 11px;
}

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

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

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

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

.scz-result-panel {
    animation: sczFadeInUp 0.5s ease;
}

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

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

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

.scz-result-icon i {
    color: white;
    font-size: 24px;
}

.scz-result-icon.scz-red {
    background: linear-gradient(135deg, #dc3545, #e55560);
}

.scz-result-icon.scz-orange {
    background: linear-gradient(135deg, #FF6725, #ff8a50);
}

.scz-result-icon.scz-yellow {
    background: linear-gradient(135deg, #ffc107, #ffd54f);
}

.scz-result-icon.scz-yellow i {
    color: #333;
}

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

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

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

/* Risk badge */
.scz-risk-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.scz-risk-badge.scz-risk-red {
    background: #fde8ea;
    color: #dc3545;
}

.scz-risk-badge.scz-risk-orange {
    background: #fff5f0;
    color: #FF6725;
}

.scz-risk-badge.scz-risk-yellow {
    background: #fff9e6;
    color: #b8860b;
}

.scz-risk-badge.scz-risk-green {
    background: #e8f5e9;
    color: #28a745;
}

/* Nearest zones list */
.scz-nearest-list {
    margin-bottom: 20px;
}

.scz-nearest-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.scz-nearest-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.scz-nearest-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6725, #ff8a50);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.scz-nearest-info {
    flex: 1;
    min-width: 0;
}

.scz-nearest-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scz-nearest-type {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scz-nearest-dist {
    font-size: 15px;
    font-weight: 700;
    color: #FF6725;
    flex-shrink: 0;
    text-align: right;
}

/* Restrictions list */
.scz-restrictions {
    background: #fff5f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.scz-restrictions h4 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px;
}

.scz-restrictions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scz-restrictions ul li {
    padding: 8px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.scz-restrictions ul li i {
    color: #FF6725;
    margin-top: 4px;
    flex-shrink: 0;
}

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

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

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

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

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

/* ===============================================
   INFO CARDS SECTION
   =============================================== */

.scz-info-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.scz-info-card-block {
    background: white;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.scz-info-card-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.scz-info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff5f0, #ffe8d6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.scz-info-card-icon i {
    color: #FF6725;
    font-size: 20px;
}

.scz-info-card-block h3 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
}

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

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

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

.scz-ref-table thead th {
    background: linear-gradient(135deg, #FF6725, #ff8a50);
    color: white;
    padding: 14px 16px;
    font-weight: 600;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.scz-ref-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    vertical-align: top;
}

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

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

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

.scz-faq-item {
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.scz-faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

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

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

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

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

.scz-faq-item.open .scz-faq-answer {
    max-height: 500px;
}

.scz-faq-answer p {
    padding: 0 20px 16px;
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

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

@media (max-width: 991px) {
    .scz-info-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 767px) {
    .scz-search-hero {
        padding: 30px 20px 20px;
    }

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

    .scz-search-hero-desc {
        font-size: 13px;
    }

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

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

    .scz-info-cards-row {
        grid-template-columns: 1fr;
    }

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

    .scz-nearest-item {
        flex-wrap: wrap;
    }

    .scz-legend {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
    }

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

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

    .scz-search-box {
        max-width: 220px;
        font-size: 12px;
    }
}

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

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

    .scz-result-header {
        flex-direction: column;
        text-align: center;
    }

    .scz-legend {
        display: none;
    }
}
