﻿/* Contact Page Styles */

/* Quick Contact Section */

.contact-page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 120px 0 100px;
    text-align: center;
}

.quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.quick-contact-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .quick-contact-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
        transition: height 0.3s ease;
    }

    .quick-contact-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

        .quick-contact-card:hover::before {
            height: 100%;
            opacity: 0.05;
        }

    .quick-contact-card .card-icon {
        font-size: 2.5rem;
        padding: 9px;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
        border-radius: 15px;
        color: white;
        min-width: 70px;
        text-align: center;
    }

[data-theme="dark"] .quick-contact-card .card-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.quick-contact-card .card-content h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.3rem;
    font-weight: 600;
}

.quick-contact-card .contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

    .quick-contact-card .contact-link:hover {
        color: var(--primary-hover);
    }

.quick-contact-card .card-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 8px;
}

/* Main Contact Section */
.main-contact-section {
    margin-bottom: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Contact Form */
.contact-form-area {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

    .form-header h2 {
        color: var(--text-primary);
        margin-bottom: 10px;
        font-size: 1.8rem;
        font-weight: 700;
    }

    .form-header p {
        color: var(--text-secondary);
        font-size: 1rem;
    }

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    transition: all 0.3s ease;
}

    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        width: 100%;
        padding: 15px 50px 15px 15px;
        border: 2px solid var(--border-color);
        border-radius: 12px;
        font-size: 1rem;
        background: var(--bg-primary);
        color: var(--text-primary);
        transition: all 0.3s ease;
        outline: none;
    }

        .input-wrapper input:focus,
        .input-wrapper select:focus,
        .input-wrapper textarea:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(41, 61, 129, 0.1);
        }

[data-theme="dark"] .input-wrapper input:focus,
[data-theme="dark"] .input-wrapper select:focus,
[data-theme="dark"] .input-wrapper textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 77, 93, 0.1);
}

.input-wrapper.focused {
    transform: scale(1.02);
}

.input-wrapper.error input,
.input-wrapper.error select,
.input-wrapper.error textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.input-wrapper .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-muted);
    pointer-events: none;
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 100px;
}

    .input-wrapper textarea + .input-icon {
        top: 20px;
        transform: none;
    }


.simple-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

    .simple-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        flex-shrink: 0;
    }

.simple-text {
    line-height: 1.4;
}

    .simple-text a {
        color: var(--primary-color);
        text-decoration: none;
    }

        .simple-text a:hover {
            text-decoration: underline;
        }

.consent-group {
    margin: 30px 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 5px 0;
}

    .checkbox-wrapper input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

.checkmark {
    width: 20px;
    height: 20px;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
    /* display: flex; kaldırdık */
}

.checkbox-wrapper:hover .checkmark {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(41, 61, 129, 0.1);
}

[data-theme="dark"] .checkbox-wrapper:hover .checkmark {
    box-shadow: 0 0 0 2px rgba(232, 77, 93, 0.1);
}

.checkbox-wrapper input[type="checkbox"]:checked ~ .checkmark {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-color: var(--primary-color);
}

    .checkbox-wrapper input[type="checkbox"]:checked ~ .checkmark::after {
        content: '✓';
        color: white;
        font-size: 16px; /* Font size'ı büyüt */
        font-weight: bold;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        line-height: 1; /* Line height ekle */
    }

.consent-text {
    color: var(--text-secondary);
    flex: 1;
    line-height: 1.5;
    margin-top: 0;
    padding-top: 0;
}

    .consent-text a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .consent-text a:hover {
            text-decoration: underline;
            color: var(--primary-hover);
        }

/* Focus state */
.checkbox-wrapper input[type="checkbox"]:focus ~ .checkmark {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(41, 61, 129, 0.3);
    }

[data-theme="dark"] .submit-btn:hover {
    box-shadow: 0 8px 25px rgba(232, 77, 93, 0.3);
}

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-icon {
    opacity: 0;
}

.btn-loading {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn.loading .btn-loading {
    opacity: 1;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Success */
.form-success {
    display: none;
    text-align: center;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

    .form-success.show {
        display: block;
        animation: fadeInUp 0.5s ease;
    }

    .form-success .success-icon {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .form-success h3 {
        color: var(--text-primary);
        margin-bottom: 10px;
        font-size: 1.5rem;
    }

    .form-success p {
        color: var(--text-secondary);
        font-size: 1rem;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Info Area */
.contact-info-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

    .info-card h3 {
        color: var(--text-primary);
        margin-bottom: 25px;
        font-size: 1.5rem;
        font-weight: 600;
        text-align: center;
    }

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    .info-item:hover {
        transform: translateX(5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .info-item:last-child {
        margin-bottom: 0;
    }

.info-icon {
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
}

.info-content h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-content p {
    color: var(--text-secondary);
    margin-bottom: 5px;
    line-height: 1.5;
}

.info-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .info-content a:hover {
        color: var(--primary-hover);
    }

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 3px 10px;
    border-radius: 15px;
    display: inline-block;
}

/* Map Container */
.map-container {
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.map-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
}

    .map-header h4 {
        color: var(--text-primary);
        margin-bottom: 8px;
        font-size: 1.2rem;
        font-weight: 600;
    }

    .map-header p {
        color: var(--text-secondary);
        font-size: 0.95rem;
    }

.map-frame {
    position: relative;
    height: 300px;
    overflow: hidden;
}

    .map-frame iframe {
        width: 100%;
        height: 100%;
        border: none;
        filter: grayscale(20%);
        transition: filter 0.3s ease;
    }

    .map-frame:hover iframe {
        filter: grayscale(0%);
    }

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.phone-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

    .phone-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
        color: white;
    }

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

    .whatsapp-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
        color: white;
    }

.email-btn {
    background: var(--bg-primary);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

    .email-btn:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
    }

.action-icon {
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

    .section-header h2 {
        color: var(--text-primary);
        font-size: 2.2rem;
        margin-bottom: 15px;
        font-weight: 700;
    }

    .section-header p {
        color: var(--text-secondary);
        font-size: 1.1rem;
        max-width: 600px;
        margin: 0 auto;
    }

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .faq-item:hover {
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.3s ease;
}

    .faq-question:hover {
        background: var(--bg-tertiary);
    }

    .faq-question h4 {
        color: var(--text-primary);
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0;
        flex: 1;
    }

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    transition: transform 0.3s ease;
    margin-left: 20px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 25px 30px;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .quick-contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contact-form-area,
    .info-card,
    .map-container {
        padding: 25px;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .quick-contact-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-item.active .faq-answer {
        padding: 20px;
    }

    .checkbox-wrapper {
        gap: 12px;
        font-size: 0.9rem;
    }

    .checkmark {
        width: 20px;
        height: 20px;
    }

    .checkbox-wrapper input[type="checkbox"]:checked ~ .checkmark::after {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .quick-contact-card .card-icon {
        font-size: 2rem;
        min-width: 60px;
        padding: 12px;
    }

    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        padding: 12px 45px 12px 12px;
        font-size: 0.95rem;
    }

    .submit-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }

    .info-item {
        padding: 15px;
        gap: 12px;
    }

    .info-icon {
        font-size: 1.3rem;
        width: 40px;
        height: 40px;
    }

    .action-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}


.contact-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

    .contact-modal-overlay.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.contact-modal {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    animation: slideUp 0.3s ease;
    position: relative;
}

.modal-content {
    padding: 40px 30px;
    text-align: center;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

    .modal-icon.success {
        background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
        color: white;
    }

    .modal-icon.error {
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
        color: white;
    }

    .modal-icon.warning {
        background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
        color: white;
    }

.modal-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-message {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.modal-close-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

    .modal-close-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(41, 61, 129, 0.3);
    }

[data-theme="dark"] .modal-close-btn:hover {
    box-shadow: 0 6px 20px rgba(232, 77, 93, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
}

.contact-modal-overlay.hide {
    animation: fadeOut 0.3s ease;
}

    .contact-modal-overlay.hide .contact-modal {
        animation: slideDown 0.3s ease;
    }

/* Responsive */
@media (max-width: 480px) {
    .contact-modal {
        max-width: 350px;
        margin: 20px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .modal-message {
        font-size: 0.95rem;
    }
}
