/* =======================================================
   Callback Popup — Sol taraf sabit form
   ======================================================= */

/* Sayfa kararan overlay */
.callback-overlay {
    position: fixed !important;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.callback-overlay.popup-visible {
    opacity: 1;
    visibility: visible;
}

/* Ana popup kartı */
.callback-popup {
    position: fixed !important;
    left: 20px;
    bottom: 80px;
    width: 330px;
    z-index: 1050;
    /* Başlangıçta gizli */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-40px);
    transition: opacity 0.45s ease,
                visibility 0.45s ease,
                transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);

    /* Kart tasarımı */
    background: #0d1520;
    border: 1px solid rgba(48, 213, 200, 0.18);
    border-left: 3px solid #30d5c8;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.04);
    padding: 26px 22px 22px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Popup açık hali */
.callback-popup.popup-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ─── Kapat butonu ─── */
.callback-close {
    position: absolute !important;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #adb5bd;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.callback-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* ─── Başlık alanı ─── */
.callback-header {
    margin-bottom: 18px;
}

.callback-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(48, 213, 200, 0.1);
    border: 1px solid rgba(48, 213, 200, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 11px;
}

.callback-header h3 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 5px !important;
    line-height: 1.3 !important;
}

.callback-header p {
    font-size: 0.78rem !important;
    color: #8a9bb0 !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

/* ─── Form alanları ─── */
.cb-field {
    margin-bottom: 9px;
}

.cb-field input {
    display: block;
    width: 100%;
    padding: 10px 13px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    color: #ffffff;
    font-size: 0.84rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.cb-field input::placeholder {
    color: #566474;
    font-size: 0.82rem;
}

.cb-field input:focus {
    border-color: #30d5c8;
    background: rgba(48, 213, 200, 0.05);
    box-shadow: 0 0 0 3px rgba(48, 213, 200, 0.12);
}

/* ─── KVKK satırı ─── */
.cb-kvkk-row {
    margin: 11px 0 15px;
}

.cb-kvkk-row label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.cb-kvkk-row input[type="checkbox"] {
    width: 14px;
    height: 14px;
    min-width: 14px;
    accent-color: #30d5c8;
    margin-top: 3px;
    cursor: pointer;
}

.cb-kvkk-row span {
    font-size: 0.73rem;
    color: #7a8a9a;
    line-height: 1.5;
}

.cb-kvkk-row span a {
    color: #30d5c8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cb-kvkk-row span a:hover {
    color: #fff;
}

@keyframes cbShake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

.cb-shake { animation: cbShake 0.5s ease; }

/* ─── Gönder butonu ─── */
#callbackSubmit {
    display: block;
    width: 100%;
    padding: 11px 16px;
    background: #30d5c8;
    color: #0d1520;
    border: none;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

#callbackSubmit:hover {
    background: #25b8ac;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(48, 213, 200, 0.3);
}

#callbackSubmit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── Başarı durumu ─── */
.callback-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 0 4px;
    gap: 12px;
}

.callback-success-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(48, 213, 200, 0.1);
    border: 2px solid #30d5c8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #30d5c8;
}

.callback-success p {
    font-size: 0.88rem !important;
    color: #ced4da !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.callback-success strong {
    color: #30d5c8;
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

/* ─── Mobil ─── */
@media (max-width: 600px) {
    .callback-popup {
        left: 12px;
        right: 12px;
        width: auto;
        bottom: 12px;
    }
}
