/* Altyapı Sorgulama Form Stilleri */

.altyapi-sorgulama-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Nunito', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Açıklama Metni */
.altyapi-intro {
    margin-bottom: 30px;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

/* Form Container */
.altyapi-form-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.altyapi-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .altyapi-form-row {
        grid-template-columns: 1fr;
    }
}

/* Form Field Stilleri */
.altyapi-form-field {
    display: flex;
    flex-direction: column;
}

.altyapi-form-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.altyapi-form-field select.selects {
    width: 100%;
}

/* Select2 Override */
.select2-results__options {
    color: black;
}

/* Sorgula Butonu */
.altyapi-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 30px auto 0;
    padding: 15px 30px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.altyapi-submit-btn:hover:not(:disabled) {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.altyapi-submit-btn.gg,
.altyapi-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.altyapi-submit-btn .arrow-icon {
    width: 20px;
    height: 20px;
}

/* Sonuç Yok Mesajı */
.no-result {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.no-result svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    fill: #dc3545;
}

.no-result h2 {
    color: #333;
    margin-bottom: 15px;
}

.no-result p {
    color: #666;
    margin-bottom: 20px;
}

/* Loading Container */
.loading-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    transition: opacity 0.3s ease;
}

.loading-elements {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #333;
}

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

/* Sonuç Ekranı */
.altyapi-result {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 1024px) {
    .altyapi-result {
        flex-direction: column;
    }
}

/* Sol Taraf: Speedometer ve Bilgiler */
.result-left {
    flex: 1;
}

.result-speed-box {
    text-align: center;
}

/* Speedometer */
.speedometer {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 30px;
}

.speedometer svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.speedometer .value-circle {
    stroke: #1687f0;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset var(--transitionSpeed, 1s) ease;
}

.speedometer.value-result .value-circle {
    stroke-dashoffset: calc(100 - var(--maxSpeed, 0));
}

.speedometer svg:last-child {
    stroke: #e0e0e0;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
}

.circle-dec {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.speedometer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.speedometer-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1;
}

.speedometer-content p {
    font-size: 18px;
    color: #666;
    margin: 5px 0 0;
}

/* Bilgi Kutuları */
.alt_stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.alt_stats .card {
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.alt_stats .card:hover {
    transform: translateY(-5px);
}

.alt_stats .card-header {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.9;
}

.alt_stats .card div:last-child {
    font-size: 20px;
    font-weight: 700;
}

/* Sağ Taraf: Paket Kartları */
.result-right {
    flex: 1;
}

.price-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.price-box:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.price-box.featured-container {
    border: 3px solid #dc3545;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3);
}

.featured {
    position: absolute;
    top: -15px;
    left: 30px;
    background: #dc3545;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
}

.featured svg {
    width: 16px;
    height: 16px;
}

.price-content {
    margin-top: 20px;
}

.price-content-speed {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.price-content-speed b {
    font-weight: 200;
}

.content-info-1 {
    margin-bottom: 20px;
}

.content-info-1 p {
    font-size: 24px;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 8px;
}

.content-info-1 span {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.fiyat {
    margin-bottom: 20px;
}

.pr-test {
    font-size: 32px;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 10px;
}

.fiyat span {
    font-size: 14px;
    color: #666;
    display: block;
    line-height: 1.8;
}

.basvur {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    padding: 15px 40px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.basvur:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .speedometer {
        width: 200px;
        height: 200px;
    }
    
    .speedometer-content h1 {
        font-size: 36px;
    }
    
    .alt_stats {
        flex-direction: column;
        align-items: center;
    }
    
    .alt_stats .card {
        width: 100%;
        max-width: 300px;
    }
}

/* ============================================
   ANASAYFA INPUT KONTEYNERİ
   ============================================ */
.altyapi-home-input-wrapper {
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.altyapi-home-input-container {
    max-width: 800px;
    margin: 0 auto;
}

.altyapi-home-input-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.altyapi-home-input-field-wrapper {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.altyapi-home-input-field-wrapper:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.altyapi-home-input-field-wrapper .location-icon {
    width: 24px;
    height: 24px;
    color: #6B46C1;
    flex-shrink: 0;
}

.altyapi-home-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent;
    cursor: pointer;
}

.altyapi-home-input::placeholder {
    color: #999;
}

/* ============================================
   MODAL YAPISI
   ============================================ */
.altyapi-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.altyapi-modal-container {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.altyapi-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.altyapi-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.altyapi-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    transition: color 0.3s ease;
}

.altyapi-modal-close:hover {
    color: #333;
}

.altyapi-modal-close svg {
    width: 24px;
    height: 24px;
}

/* Breadcrumb */
.altyapi-breadcrumb {
    padding: 15px 30px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item {
    color: #6B46C1;
    font-weight: 600;
    padding: 4px 8px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.breadcrumb-separator {
    color: #999;
}

/* Modal Content */
.altyapi-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.altyapi-modal-search {
    position: relative;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #999;
}

.altyapi-modal-search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.altyapi-modal-search-input:focus {
    outline: none;
    border-color: #6B46C1;
}

.altyapi-modal-list {
    max-height: 400px;
    overflow-y: auto;
}

.modal-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.modal-list-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.item-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.item-arrow {
    width: 20px;
    height: 20px;
    color: #999;
}

.modal-list-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

.altyapi-modal-loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6B46C1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* Modal Footer */
.altyapi-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.altyapi-modal-btn-cancel,
.altyapi-modal-btn-confirm {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.altyapi-modal-btn-cancel {
    background: #f3f4f6;
    color: #666;
}

.altyapi-modal-btn-cancel:hover {
    background: #e5e7eb;
}

.altyapi-modal-btn-confirm {
    background: linear-gradient(135deg, #6B46C1 0%, #9333EA 100%);
    color: #fff;
}

.altyapi-modal-btn-confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.4);
}

.altyapi-modal-btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   SONUÇ SAYFASI
   ============================================ */
.altyapi-result-page-wrapper {
    min-height: 100vh;
    background: #f9fafb;
    padding: 40px 20px;
}

.altyapi-result-hero {
    text-align: center;
    margin-bottom: 50px;
}

.altyapi-result-hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
}

.hero-offer {
    font-size: 18px;
    color: #6B46C1;
    font-weight: 600;
}

.altyapi-speed-display {
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #6B46C1 0%, #9333EA 100%);
    padding: 60px 40px;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(107, 70, 193, 0.3);
}

.speed-value-large {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.speed-unit-large {
    font-size: 36px;
    font-weight: 500;
    opacity: 0.9;
}

.speed-label {
    font-size: 20px;
    margin-top: 15px;
    opacity: 0.9;
}

.altyapi-info-boxes-result {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.info-box {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
}

.info-box-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.info-box-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* Paketler Grid */
.altyapi-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.package-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.package-card.featured {
    border: 3px solid #6B46C1;
    box-shadow: 0 10px 40px rgba(107, 70, 193, 0.3);
}

.package-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #6B46C1 0%, #9333EA 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.package-speed {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.package-name {
    font-size: 24px;
    font-weight: 700;
    color: #6B46C1;
    margin-bottom: 10px;
}

.package-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.package-price {
    font-size: 48px;
    font-weight: 700;
    color: #6B46C1;
    margin-bottom: 20px;
}

.package-price-old {
    font-size: 24px;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.package-features li {
    padding: 8px 0;
    font-size: 14px;
    color: #333;
    position: relative;
    padding-left: 25px;
}

.package-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.package-cta {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6B46C1 0%, #9333EA 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.package-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
}

/* Info Notice */
.altyapi-info-notice {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 20px;
    border-radius: 10px;
    margin: 0 auto 40px;
    max-width: 1200px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.notice-icon {
    width: 24px;
    height: 24px;
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 2px;
}

.altyapi-info-notice p {
    margin: 0;
    color: #1e40af;
    font-size: 14px;
    line-height: 1.6;
}

/* CTA Section */
.altyapi-cta-section {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.altyapi-cta-button {
    background: linear-gradient(135deg, #6B46C1 0%, #9333EA 100%);
    color: #fff;
    padding: 20px 60px;
    border: none;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.3);
}

.altyapi-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(107, 70, 193, 0.4);
}

/* Loading States */
.altyapi-result-loading {
    text-align: center;
    padding: 100px 20px;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-spinner-large {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #6B46C1;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

.altyapi-no-result {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.altyapi-no-result svg {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    fill: #dc3545;
}

.altyapi-no-result h2 {
    color: #333;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .altyapi-home-input-title {
        font-size: 24px;
    }
    
    .altyapi-modal-container {
        max-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
        max-height: 95vh;
    }
    
    .altyapi-result-hero h1 {
        font-size: 32px;
    }
    
    .speed-value-large {
        font-size: 48px;
    }
    
    .speed-unit-large {
        font-size: 24px;
    }
    
    .altyapi-info-boxes-result {
        grid-template-columns: 1fr;
    }
    
    .altyapi-packages-grid {
        grid-template-columns: 1fr;
    }
}
