/**
 * Contact Page Theme Color Harmony
 * Tema renkleriyle uyumlu iletişim sayfası stilleri
 */

/* Form alanları tema renkleriyle uyumlu */
.contact-from .xb-item--field input,
.contact-from .xb-item--field textarea,
.contact-from .xb-item--field select,
.contact-from .nice-select {
    border: 2px solid #edf3f5 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    transition: all 0.3s ease !important;
}

/* Focus durumunda tema ana rengi */
.contact-from .xb-item--field input:focus,
.contact-from .xb-item--field textarea:focus,
.contact-from .nice-select:focus,
.contact-from .nice-select.open {
    border-color: #00cc99 !important;
    box-shadow: 0 0 0 3px rgba(0, 204, 153, 0.1) !important;
    outline: none !important;
}

/* Placeholder renkleri */
.contact-from .xb-item--field input::placeholder,
.contact-from .xb-item--field textarea::placeholder {
    color: #787b84 !important;
    opacity: 0.7;
}

/* Nice select dropdown tema uyumu */
.nice-select .list {
    background: #ffffff !important;
    border: 2px solid #edf3f5 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1) !important;
}

.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus {
    background-color: rgba(0, 204, 153, 0.1) !important;
    color: #00cc99 !important;
}

.nice-select .option.selected {
    color: #00cc99 !important;
    font-weight: 600;
}

/* Submit butonu tema renkleri */
.contact-from button[type="submit"],
.contact-from .xb-item--submit {
    background: linear-gradient(135deg, #00cc99 0%, #0091ff 100%) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 15px 40px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 204, 153, 0.3) !important;
}

.contact-from button[type="submit"]:hover,
.contact-from .xb-item--submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 204, 153, 0.4) !important;
}

/* İkonlar için tema rengi */
.contact-from .xb-item--field::before {
    color: #00cc99 !important;
}

/* Başlıklar tema rengiyle */
.contact .sec-title .title {
    color: #0f172a !important;
}

.contact .sec-title .subtitle {
    color: #00cc99 !important;
}

/* İletişim bilgi kartları */
.contact-info-card {
    background: #ffffff;
    border: 1px solid #edf3f5;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.contact-info-card:hover {
    border-color: #00cc99;
    box-shadow: 0 10px 30px rgba(0, 204, 153, 0.15);
    transform: translateY(-5px);
}

.contact-info-card .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00cc99 0%, #0091ff 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-info-card .icon i {
    color: #ffffff;
    font-size: 24px;
}

.contact-info-card h4 {
    color: #0f172a;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-info-card p,
.contact-info-card a {
    color: #787b84;
    font-size: 16px;
    line-height: 1.6;
}

.contact-info-card a:hover {
    color: #00cc99;
}

/* Harita container */
.map-container {
    border: 2px solid #edf3f5;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 50px;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Sosyal medya linkleri */
.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.contact-social a {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: #edf3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #787b84;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background: linear-gradient(135deg, #00cc99 0%, #0091ff 100%);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Form validation mesajları */
.contact-from .error-message {
    color: #fb4927;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.contact-from .success-message {
    color: #00cc99;
    font-size: 14px;
    padding: 15px;
    background: rgba(0, 204, 153, 0.1);
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

/* Loading spinner */
.contact-from .loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

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

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .contact-info-card {
        padding: 20px;
    }
    
    .contact-from button[type="submit"] {
        width: 100%;
        padding: 12px 30px !important;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

/* Dark mode desteği (opsiyonel) */
@media (prefers-color-scheme: dark) {
    .contact-from .xb-item--field input,
    .contact-from .xb-item--field textarea,
    .contact-from .nice-select,
    .contact-info-card {
        background: #1e293b !important;
        color: #e2e8f0 !important;
        border-color: #334155 !important;
    }
    
    .contact-info-card:hover {
        border-color: #00cc99;
    }
    
    .nice-select .list {
        background: #1e293b !important;
        border-color: #334155 !important;
    }
}

/* WPForms uyumluluk */
.wpforms-container .wpforms-field input[type="text"],
.wpforms-container .wpforms-field input[type="email"],
.wpforms-container .wpforms-field input[type="tel"],
.wpforms-container .wpforms-field textarea,
.wpforms-container .wpforms-field select {
    border: 2px solid #edf3f5 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 12px 20px !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

.wpforms-container .wpforms-field input:focus,
.wpforms-container .wpforms-field textarea:focus,
.wpforms-container .wpforms-field select:focus {
    border-color: #00cc99 !important;
    box-shadow: 0 0 0 3px rgba(0, 204, 153, 0.1) !important;
    outline: none !important;
}

.wpforms-container .wpforms-submit {
    background: linear-gradient(135deg, #00cc99 0%, #0091ff 100%) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 15px 40px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.wpforms-container .wpforms-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 204, 153, 0.4) !important;
}

/* Contact Form 7 uyumluluk */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    border: 2px solid #edf3f5 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 12px 20px !important;
    border-radius: 10px !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    border-color: #00cc99 !important;
    box-shadow: 0 0 0 3px rgba(0, 204, 153, 0.1) !important;
    outline: none !important;
}

.wpcf7-form input[type="submit"] {
    background: linear-gradient(135deg, #00cc99 0%, #0091ff 100%) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 15px 40px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 204, 153, 0.4) !important;
}