/* Teklif modalı + FAB — yalnızca transform/opacity animasyonları; prefers-reduced-motion destekli */

@media (prefers-reduced-motion: reduce) {
    .quote-modal .modal-dialog,
    .quote-modal-content,
    .quote-fab,
    .quote-fab-pulse,
    .contact-cta-card,
    .wizard-progress-fill,
    #quoteModal .wizard-progress-fill {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

.quote-modal .modal-dialog {
    transform: translateZ(0);
}

.quote-modal.show .quote-modal-content {
    animation: quoteModalPop 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes quoteModalPop {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.quote-modal-content {
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(13, 58, 66, 0.35);
}

@media (max-width: 575.98px) {
    .quote-modal-content {
        border-radius: 0;
    }
}

.quote-modal-header {
    background: linear-gradient(135deg, #0d3a42 0%, #1a6b78 50%, #3EA7B4 100%);
    color: #fff;
    padding: 1rem 1.25rem;
}

.quote-modal-header .modal-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.quote-modal-header .btn-close {
    opacity: 0.85;
}

.quote-modal-body {
    position: relative;
    background: linear-gradient(180deg, #f6fafb 0%, #fff 28%);
    padding: 1rem 1.15rem 1.5rem;
    overflow: hidden;
}

@media (min-width: 576px) {
    .quote-modal-body {
        padding: 1.25rem 1.5rem 1.75rem;
    }
}

.quote-modal-lead {
    border-left: 3px solid #3EA7B4;
    padding-left: 0.75rem;
    margin-bottom: 1rem !important;
}

/* Bot tuzağı: ekran okuyucudan gizli, odak alanı dışında */
.quote-form-shell {
    position: relative;
}

.quote-hp-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
}

#quoteModal .loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(2px);
}

@media (prefers-reduced-motion: reduce) {
    #quoteModal .loading-overlay {
        backdrop-filter: none;
    }
}

.loading-overlay .loading-spinner {
    border-top-color: #3EA7B4;
}

/* Wizard (modal içi) */
.wizard-progress {
    margin-bottom: 1.5rem;
}

.wizard-progress-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(13, 58, 66, 0.1);
    overflow: hidden;
    margin-bottom: 0.75rem;
    width: 100%;
    /* JS: --wizard-pct = aktifAdım / toplamAdım (0–1); width % modal içinde bazen takıldığı için scaleX kullanılıyor */
    --wizard-pct: 0.2;
}

.wizard-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3EA7B4, #1a6b78);
    transition: width 0.35s ease;
}

/* Teklif modalı: ilerleme çubuğu — transform ile güvenilir boyama */
#quoteModal .wizard-progress-fill {
    width: 100%;
    max-width: none;
    display: block;
    transform: scaleX(var(--wizard-pct, 0.2));
    transform-origin: left center;
    transition: transform 0.35s ease;
    will-change: transform;
}

.wizard-progress-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem;
}

.wizard-progress-steps li {
    flex: 1 1 auto;
    min-width: 56px;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: #8aa0a8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wizard-progress-steps li .num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0 auto 0.25rem;
    border-radius: 50%;
    background: #e8f4f5;
    color: #6c8a94;
    font-size: 0.75rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.wizard-progress-steps li.done .num {
    background: #c8e8ec;
    color: #1a6b78;
}

.wizard-progress-steps li.active .num {
    background: #3EA7B4;
    color: #fff;
    transform: scale(1.06);
}

.wizard-progress-steps li.active {
    color: #0d3a42;
}

.wizard-progress-steps li .lbl {
    font-size: 0.6rem;
    letter-spacing: 0.03em;
}

.quote-form-shell .wizard-container {
    font-family: 'Poppins', sans-serif;
    border-radius: 16px;
    padding: 1.1rem 1.15rem 1.25rem;
    box-shadow: none;
    border: 1px solid rgba(62, 167, 180, 0.22);
    background: #fff;
}

@media (min-width: 576px) {
    .quote-form-shell .wizard-container {
        padding: 1.35rem 1.5rem 1.5rem;
    }
}

.quote-form-shell .wizard-step h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #0d3a42;
    font-size: 1.15rem;
}

.quote-form-shell .wizard-step .step-hint {
    color: #6c8490;
    font-size: 0.88rem;
    margin: -0.35rem 0 1rem;
}

.quote-form-shell .form-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #2a454d;
    font-size: 0.86rem;
}

.quote-form-shell .form-control,
.quote-form-shell .form-select {
    font-family: 'Poppins', sans-serif;
    border-radius: 11px;
    border: 1px solid #d0e3e6;
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quote-form-shell .form-control:focus,
.quote-form-shell .form-select:focus {
    border-color: #3EA7B4;
    box-shadow: 0 0 0 3px rgba(62, 167, 180, 0.2);
}

.quote-form-shell .form-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
}

.tech-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 576px) {
    .tech-feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.tech-feature-grid .form-check {
    margin: 0;
    padding: 0.6rem 0.75rem;
    border-radius: 11px;
    border: 1px solid #e0eef0;
    background: #fafcfd;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.tech-feature-grid .form-check:hover {
    border-color: #3EA7B4;
    background: #f0fafb;
    transform: translateY(-1px);
}

.tech-feature-grid .form-check-input {
    margin-top: 0.3rem;
}

.tech-feature-grid .form-check-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    line-height: 1.35;
    padding-left: 0.2rem;
}

.quote-form-shell .wizard-navigation {
    border-top: 1px solid #e8f2f3;
    padding-top: 1.1rem;
    margin-top: 1.1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quote-form-shell .wizard-navigation .btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 11px;
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
}

.quote-form-shell .wizard-navigation .btn-primary,
.quote-form-shell .wizard-navigation .btn-success {
    background: linear-gradient(135deg, #3EA7B4, #2a8f9c);
    border: none;
}

.quote-form-shell .wizard-navigation .btn-primary:hover,
.quote-form-shell .wizard-navigation .btn-success:hover {
    background: linear-gradient(135deg, #359aa6, #257a85);
}

.quote-form-shell .alert-info {
    border-radius: 12px;
    border: none;
    background: #e8f6f8;
    color: #1a454d;
    font-size: 0.9rem;
}

.quote-form-shell .alert-info h5 {
    font-weight: 700;
    color: #0d3a42;
    font-size: 1rem;
}

/* Sabit teklif butonu — GPU dostu pulse */
.quote-fab {
    position: fixed;
    right: 1rem;
    bottom: 5.5rem;
    z-index: 1030;
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #3EA7B4, #1a6b78);
    color: #fff !important;
    box-shadow: 0 8px 28px rgba(13, 58, 66, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

@media (min-width: 768px) {
    .quote-fab {
        right: 1.5rem;
        bottom: 2rem;
        width: 3.6rem;
        height: 3.6rem;
    }
}

.quote-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 36px rgba(13, 58, 66, 0.4);
    color: #fff !important;
}

.quote-fab:focus-visible {
    outline: 3px solid rgba(62, 167, 180, 0.55);
    outline-offset: 2px;
}

.quote-fab-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(62, 167, 180, 0.55);
    animation: quoteFabRing 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes quoteFabRing {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.quote-fab .quote-fab-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.quote-fab .quote-fab-label {
    font-size: 0.58rem;
    font-weight: 700;
    margin-top: 2px;
    letter-spacing: 0.02em;
}

@media (max-width: 380px) {
    .quote-fab .quote-fab-label {
        display: none;
    }
}

/* Contact sayfası CTA şeridi */
.contact-cta-strip {
    background: linear-gradient(180deg, #f6fafb 0%, #eef5f6 100%);
    contain: layout style;
}

.contact-cta-strip h2 {
    color: #0d3a42;
    font-weight: 800;
}

.contact-cta-card {
    height: 100%;
    padding: 1.15rem 1.2rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(62, 167, 180, 0.2);
    box-shadow: 0 6px 24px rgba(13, 58, 66, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.contact-cta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(13, 58, 66, 0.1);
}

.contact-cta-card .cta-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(62, 167, 180, 0.2), rgba(26, 107, 120, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a6b78;
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
}

.contact-cta-strip .btn-open-quote {
    font-weight: 700;
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #3EA7B4, #2a8f9c);
    border: none;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(62, 167, 180, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-cta-strip .btn-open-quote:hover {
    transform: translateY(-2px);
    color: #fff !important;
    box-shadow: 0 12px 32px rgba(62, 167, 180, 0.45);
}

/* CTA şeridi dışındaki “formu aç” tetikleyicileri (ör. Contact/Index) */
button.btn-open-quote,
a.btn-open-quote {
    font-weight: 700;
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #3ea7b4, #2a8f9c);
    border: none;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(62, 167, 180, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.btn-open-quote:hover,
a.btn-open-quote:hover {
    transform: translateY(-2px);
    color: #fff !important;
    box-shadow: 0 12px 32px rgba(62, 167, 180, 0.45);
}
