/* Formun genel yapısını güzelleştirelim */
.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    box-sizing: border-box;
}

/* Etiketlerin görünümünü güzelleştirelim */
.wpcf7-form label {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

/* Input, Select ve Textarea kutucuklarını tasarlayalım */
.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

/* Focus durumunda kutucuklara güzel bir renk efekti verelim */
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Gönder butonunun görünümünü düzenleyelim */
.wpcf7-form .wpcf7-submit {
    padding: 12px 20px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

/* Butona hover efekti ekleyelim */
.wpcf7-form .wpcf7-submit:hover {
    background-color: #45a049;
}

/* Hata mesajlarının görünümünü düzenleyelim */
.wpcf7-not-valid-tip {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
}

/* Formun gönderme durumları için renkler */
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #46b450; /* Green */
    color: #46b450;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    border-color: #dc3232; /* Red */
    color: #dc3232;
}

.wpcf7 form.spam .wpcf7-response-output {
    border-color: #f56e28; /* Orange */
    color: #f56e28;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    border-color: #ffb900; /* Yellow */
    color: #ffb900;
}

/* Formu yollama sırasında spinner (yükleniyor simgesi) */
.wpcf7-spinner {
    visibility: hidden;
    display: inline-block;
    background-color: #23282d; /* Dark Gray 800 */
    opacity: 0.75;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 100%;
    padding: 0;
    margin: 0 24px;
    position: relative;
}

form.submitting .wpcf7-spinner {
    visibility: visible;
}

.wpcf7-spinner::before {
    content: '';
    position: absolute;
    background-color: #fbfbfc; /* Light Gray 100 */
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border: none;
    border-radius: 100%;
    transform-origin: 8px 8px;
    animation-name: spin;
    animation-duration: 1000ms;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Hata mesajlarının stilini özelleştirelim */
.wpcf7-not-valid-tip {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
}

/* Küçük ekranlar için uyumlu hale getirelim */
@media (max-width: 768px) {
    .wpcf7-form {
        padding: 15px;
    }
}

/* Input ve Select alanlarının görsel düzenlemesi */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form select,
.wpcf7-form textarea {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Select kutularına özel düzenleme */
.wpcf7-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"%3E%3Cpath d="M12 5l-4 4-4-4" fill="none" stroke="%23000" stroke-width="2"%3E%3C/path%3E%3C/svg%3E');
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 12px;
    padding-right: 30px;
}

/* Textarea kutusunun düzenlemesi */
.wpcf7-form textarea {
    min-height: 120px;
}

/* Submit butonunun altındaki boşluğu azaltalım */
.wpcf7-form .wpcf7-submit {
    margin-top: 15px;
}

/* Formdaki her input için gerekli düzenlemeleri */
.wpcf7-form input:disabled,
.wpcf7-form select:disabled,
.wpcf7-form textarea:disabled {
    background-color: #e6e6e6;
    cursor: not-allowed;
}

/* Yükleme simgesini güzel bir şekilde ekleyelim */
.wpcf7-spinner {
    visibility: hidden;
    margin-top: 20px;
}

/* Dil seçenekleri için genel stil */
.wpcf7-form select {
    appearance: none;
    padding: 10px;
    font-size: 16px;
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 6px;
    width: 100%;
}
