/* SİTE ÇATIŞMASINI ÖNLEMEK İÇİN BODY STİLLERİ KALDIRILDI */
/* Bu kodun, eklentinin assets/style.css dosyasına kopyalanması gerekir. */

/* Temel font stili, sadece formun içindeki elementlere uygulanacaktır. */
.qhome-form-wrapper * {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
}

/* Form Konteyneri */
.qhome-form-wrapper {
    max-width: 500px; /* Genişlik daraltıldı */
    width: 100%;
    background-color: #ffffff; 
    padding: 15px; /* Minimum ana boşluk */
    border-radius: 6px; /* Köşeler küçültüldü */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); /* Dış gölge korundu */
    margin: 20px auto; 
    color: #555555; 
}

/* Başlıklar ve Metinler */
.qhome-form-wrapper h2 {
    font-size: 24px; 
    font-weight: 600; 
    color: #333333; 
    margin-bottom: 5px; 
}
.qhome-form-wrapper p.intro {
    font-size: 14px; 
    color: #777777;
    margin-bottom: 10px; 
    padding-bottom: 10px; 
    border-bottom: 1px solid #e0e0e0;
}

/* Formun İç Yapısı */
.qhome-contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; 
}

/* Form Grupları ve Etiketler */
.qhome-contact-form .form-group {
    width: 100%; 
    margin-bottom: 0; 
}
.qhome-contact-form .half-width {
    width: calc(50% - 4px); 
}
.qhome-contact-form label {
    display: block;
    font-size: 12px; 
    color: #777777;
    margin-bottom: 1px; 
    font-weight: 500; 
}

/* Input Alanları - KESİN YÜKSEKLİK İLE KONTROL */
.qhome-contact-form input[type="text"],
.qhome-contact-form input[type="email"],
.qhome-contact-form input[type="tel"] {
    width: 100%;
    height: 32px; 
    padding: 0 8px; 
    border: 1px solid #dcdcdc;
    border-radius: 4px; 
    box-sizing: border-box; 
    font-size: 14px; 
    color: #333333;
    background-color: #ffffff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Textarea için özel ayar */
.qhome-contact-form textarea {
    width: 100%;
    padding: 6px 8px; 
    min-height: 80px; 
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    box-sizing: border-box; 
    font-size: 14px;
    color: #333333;
    background-color: #ffffff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Odaklanma anındaki görünüm */
.qhome-contact-form input:focus,
.qhome-contact-form textarea:focus {
    border-color: #a0a0a0; 
    outline: none;
    box-shadow: 0 0 0 2px rgba(160, 160, 160, 0.1); 
}

/* PlaceHolder rengi */
.qhome-contact-form input::placeholder,
.qhome-contact-form textarea::placeholder {
    color: #a0a0a0;
    font-size: 13px;
}

/* Gönder butonu */
.qhome-contact-form .submit-button {
    background-color: #333333; 
    color: white;
    padding: 8px 20px; 
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px; 
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, box-shadow 0.3s;
    text-transform: uppercase;
    margin-top: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.qhome-contact-form .submit-button:hover {
    background-color: #555555; 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* KVKK Onay Kutusu Stilleri */
.qhome-contact-form .checkbox-group {
    width: 100%;
    display: flex;
    align-items: center;
    margin-top: 5px; 
}
.qhome-contact-form .checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}
.qhome-contact-form .checkbox-group label {
    margin-bottom: 0;
    font-weight: 400; 
    font-size: 13px; 
    color: #777777;
    cursor: pointer;
}

/* Başarı Mesajı Stili (Yeşil Tonlar) */
.success-message {
    background-color: #e6ffe6;
    color: #1a7a1a;
    padding: 10px; 
    border: 1px solid #a3e6a3;
    border-radius: 6px;
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}
/* Uyarı Mesajı Stili (Hata durumunda) */
.warning-message {
    background-color: #ffebe6;
    color: #cc4700;
    padding: 10px; 
    border: 1px solid #ffb399;
    border-radius: 6px;
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal Stilleri */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.kvkk-modal-content {
    background-color: #ffffff;
    color: #333333;
    padding: 20px; 
    border-radius: 8px;
    max-width: 400px; 
    width: 90%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.kvkk-modal-content h3 {
    color: #333333;
    margin-top: 0;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.kvkk-modal-content p {
    font-size: 13px; 
    line-height: 1.5;
    margin-bottom: 15px;
    max-height: 150px; 
    overflow-y: auto;
    padding-right: 8px;
    color: #555555;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.modal-actions button {
    padding: 8px 15px; 
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
    font-size: 13px;
}

#acceptKvkk {
    background-color: #1a7a1a; 
    color: white;
    border: none;
}
#acceptKvkk:hover {
    background-color: #145c14;
}

#cancelKvkk {
    background-color: #e0e0e0; 
    color: #333333;
    border: 1px solid #dcdcdc;
}
#cancelKvkk:hover {
    background-color: #cccccc;
}

/* Mobil Uyum */
@media (max-width: 600px) {
    .qhome-contact-form .half-width {
        width: 100%; 
    }
    .qhome-form-wrapper {
        padding: 15px; 
    }
    /* Mobil görünümde de boşlukların minimumda kalması için tekrar edildi */
    .qhome-contact-form {
        gap: 8px; 
    }
    
    .qhome-contact-form input[type="text"],
    .qhome-contact-form input[type="email"],
    .qhome-contact-form input[type="tel"] {
        height: 32px;
        padding: 0 8px;
    }
    
    .qhome-contact-form textarea {
        padding: 6px 8px;
    }

    .qhome-contact-form label {
        margin-bottom: 1px; 
    }
}