/**
 * Danışma ve İletişim Formu - Frontend CSS
 * Yazar: Hakan ABATAY
 */

.df-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-top: 3px solid var(--df-border-color, #76b72a);
    border-bottom: 3px solid var(--df-border-color, #76b72a);
    background-color: var(--df-bg-color, #f3f8ee);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.df-wrapper * {
    box-sizing: border-box;
}

.df-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 340px;
    position: relative;
    box-sizing: border-box;
}

/* ===================================================
   1. ORTA SÜTUN (İletişim & Destek)
   =================================================== */
.df-left-col {
    flex: 0 0 320px;
    width: 320px;
    max-width: 320px;
    padding: 20px 20px 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    z-index: 2;
    position: relative;
}

.df-contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.df-contact-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.df-contact-header .df-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--df-title-color, #69b32d);
}

.df-contact-header .df-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.df-title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--df-title-color, #69b32d);
}

.df-contact-body {
    padding-left: 0;
    margin-top: 3px;
}

.df-phone-link {
    font-size: 21px;
    font-weight: 700;
    color: #2b3b24;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.df-phone-link:hover {
    color: var(--df-title-color, #69b32d);
    text-decoration: none;
}

.df-divider {
    height: 1px;
    width: 100%;
    background: rgba(118, 183, 42, 0.3);
    margin: 10px 0;
}

/* ===================================================
   2. SAĞ SÜTUN (Form)
   =================================================== */
.df-center-col {
    flex: 0 0 380px;
    width: 380px;
    max-width: 380px;
    padding: 12px 30px 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    position: relative;
}

.df-form-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.df-form-header .df-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--df-title-color, #69b32d);
}

.df-form-header .df-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.df-form-title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--df-title-color, #69b32d);
}

.df-form {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.df-field-group {
    width: 100%;
}

.df-input,
.df-textarea {
    width: 100%;
    padding: 6px 12px;
    font-size: 13.5px;
    color: #333333;
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(118, 183, 42, 0.35);
    border-bottom: 2px solid var(--df-border-color, #76b72a);
    border-radius: 4px;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: none;
}

.df-input::placeholder,
.df-textarea::placeholder {
    color: #718469;
    font-size: 13px;
}

.df-input:focus,
.df-textarea:focus {
    background-color: #ffffff;
    border-color: var(--df-border-color, #76b72a);
    box-shadow: 0 0 0 2px rgba(118, 183, 42, 0.2);
}

.df-input {
    height: 33px;
}

/* Matematik Captcha */
.df-wrapper .df-math-captcha {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    background: #ffffff !important;
    border: 1px solid rgba(118, 183, 42, 0.5) !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.df-wrapper .df-math-question {
    flex: 0 0 auto !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #2b3b24 !important;
    white-space: nowrap !important;
    letter-spacing: 0;
}

.df-wrapper .df-math-captcha input.df-math-input {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 32px !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: 15px !important;
}

.df-wrapper .df-math-captcha button.df-math-refresh {
    flex: 0 0 auto !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--df-btn-bg, #6eb827) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.df-wrapper .df-math-captcha button.df-math-refresh:hover {
    background: color-mix(in srgb, var(--df-btn-bg, #6eb827) 80%, black) !important;
}

.df-textarea {
    min-height: 50px;
    resize: vertical;
}

/* Captcha Kutusu */
.df-captcha-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #d4dcd0;
    border-radius: 4px;
    padding: 6px 14px;
    max-width: 260px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.df-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #333333;
    font-weight: 500;
    user-select: none;
    margin: 0;
}

.df-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--df-btn-bg, #6eb827);
    margin: 0;
}

.df-captcha-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1px;
}

.df-captcha-brand {
    font-size: 10px;
    font-weight: 700;
    color: #444444;
    line-height: 1.1;
    margin-top: 1px;
}

.df-captcha-terms {
    font-size: 7.5px;
    color: #888888;
    line-height: 1;
}

/* Gönder Butonu */
.df-submit-group {
    margin-top: 5px;
}

.df-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 25px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--df-btn-color, #ffffff);
    background-color: var(--df-btn-bg, #6eb827);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.df-submit-btn:hover {
    background-color: color-mix(in srgb, var(--df-btn-bg, #6eb827) 85%, black);
}

.df-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Spinner */
.df-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: df-spin 0.7s linear infinite;
}

@keyframes df-spin {
    to { transform: rotate(360deg); }
}

/* Geri Bildirim Mesajı */
.df-response-msg {
    margin: 0 0 10px 0;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.df-response-msg.df-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.df-response-msg.df-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* ===================================================
   3. SOL SÜTUN (Görsel / Harita - SADECE MASAÜSTÜNDE)
   =================================================== */
.df-right-col {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    max-width: calc(100% - 700px) !important;
    min-width: 250px !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    overflow: hidden !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.df-image-wrap {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
}

.df-image-wrap img.df-img {
    height: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: left center !important;
    display: block !important;
}

/* ===================================================
   4. MOBİL VE TABLET UYUMLULUĞU (RESPONSIVE)
   Kural: Soldaki görsel/harita mobilde GÖZÜKMEYECEK!
   =================================================== */
@media (max-width: 991px) {
    .df-right-col {
        display: none !important; /* Mobilde tamamen gizle */
    }

    .df-container {
        flex-direction: column !important;
        align-items: stretch !important;
        max-width: 100% !important;
        padding: 0 !important;
        min-height: auto !important;
        height: auto !important;
    }

    .df-left-col,
    .df-center-col {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
    }

    .df-left-col {
        padding: 25px 20px 10px 20px !important;
    }

    .df-center-col {
        padding: 10px 20px 25px 20px !important;
    }

    .df-captcha-card {
        max-width: 260px;
    }
}

@media (max-width: 480px) {
    .df-phone-link {
        font-size: 17px;
    }

    .df-submit-btn {
        width: 100%;
    }
}

/* Tema stillerine karşı koruma (alanlar ve buton) */
.df-wrapper .df-form input.df-input,
.df-wrapper .df-form textarea.df-textarea {
    border: 1px solid rgba(118, 183, 42, 0.35) !important;
    border-bottom: 2px solid var(--df-border-color, #76b72a) !important;
    border-radius: 4px !important;
    background-color: rgba(255, 255, 255, 0.85) !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.df-wrapper .df-form button.df-submit-btn {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    padding: 7px 25px !important;
    background-color: var(--df-btn-bg, #6eb827) !important;
    color: var(--df-btn-color, #ffffff) !important;
    border: none !important;
    border-radius: 4px !important;
    display: inline-flex !important;
}

@media (max-width: 480px) {
    .df-wrapper .df-form button.df-submit-btn { width: 100% !important; }
}
/* Sol bölüm: Harita modu (sadece masaüstü) */
.df-wrapper .df-right-col.df-map-mode {
    left: 0 !important;
    right: auto !important;
    width: calc(100% - 700px) !important;
    min-width: 280px !important;
    pointer-events: auto !important;
    background: #e5e3df;
}

.df-wrapper .df-right-col.df-map-mode iframe.df-map {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    border: 0 !important;
    display: block !important;
}