/* İletişim Sayfası CSS */

/* Body reset for contact page */
body {
    margin: 0;
    padding: 0;
}

/* Hero Section */
.contact-hero {
    height: 350px;
    background: linear-gradient(rgba(37, 99, 235, 0.8), rgba(37, 99, 235, 0.8)), url('../images/sahil.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #132546 60%, #1e40af 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    margin-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* İletişim Kartları */
.contact-cards-section {
    padding: 80px 0;
    background: white;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

.contact-icon.phone {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.contact-icon.whatsapp {
    background: linear-gradient(135deg, #25d366, #34d675);
}

.contact-icon.email {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.contact-icon.location {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.contact-card h3 {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-card p {
    color: #6b7280;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.contact-link {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #1d4ed8;
}

.contact-hours {
    font-size: 0.85rem;
    color: #9ca3af;
    font-style: italic;
}

.contact-address {
    font-style: normal;
    color: #2563eb;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* İletişim Formu Section */
.contact-form-section {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form-container h2 {
    font-size: 2.2rem;
    color: #1f2937;
    margin-bottom: 15px;
    font-weight: 700;
}

.form-description {
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #f9fafb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.error-message {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message::before {
    content: '⚠';
    font-size: 0.9rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.checkbox-label {
    display: flex;
    align-items: flex-start; /* Üstten hizala */
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    transition: all 0.2s ease;
    padding: 5px 0;
}

.checkbox-label:hover {
    color: #2563eb;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    position: relative;
    width: 20px; /* Sabit genişlik */
    height: 20px; /* Sabit yükseklik */
    border: 2px solid #d1d5db;
    transition: 0.3s ease all;
    background-color: #fff;
    border-radius: 4px;
    flex-shrink: 0; /* Küçülmeyi engelle */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px; /* Yazının ilk satırı ile hizalamak için */
}

.checkbox-label:hover .checkmark {
    border-color: #2563eb;
    transform: scale(1.05); /* 1.08'den 1.05'e düşürüldü */
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2); /* Gölge küçültüldü */
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-color: #2563eb;
    transform: scale(1.05); /* 1.12'den 1.05'e düşürüldü */
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px; /* 8px'den 6px'e */
    top: 2px; /* 4px'den 2px'e */
    width: 5px; /* 7px'den 5px'e */
    height: 10px; /* 14px'den 10px'e */
    border: solid white;
    border-width: 0 2px 2px 0; /* 3px'den 2px'e */
    transform: rotate(45deg);
}

.checkbox-label a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.checkbox-label.error {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.checkbox-label.error .checkmark {
    border-color: #dc2626;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.checkbox-group .error-message {
    margin-top: 8px;
    margin-left: 48px;
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 500;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Harita ve Ek Bilgiler */
.map-info-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.map-container h3,
.additional-info h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 20px;
    font-weight: 600;
}

.map-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.additional-info {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.working-hours {
    margin-bottom: 30px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.hours-item:last-child {
    border-bottom: none;
}

.day {
    font-weight: 500;
    color: #374151;
}

.time {
    color: #2563eb;
    font-weight: 600;
}

.info-box {
    background: #f8fafc;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #2563eb;
}

.info-box h4 {
    color: #1f2937;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    padding: 8px 0;
    color: #4b5563;
    position: relative;
    padding-left: 20px;
}

.info-box li::before {
    content: '•';
    color: #2563eb;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* SSS Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 60px;
    font-weight: 700;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 25px 30px;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1f2937;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question i {
    color: #2563eb;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: #4b5563;
    line-height: 2;  
    margin: 3;
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.success-modal.show {
    display: flex;
}

.success-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.success-modal .modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 400px;
    margin: 0 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon i {
    font-size: 2.5rem;
    color: white;
}

.success-modal h3 {
    color: #1f2937;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.success-modal p {
    color: #6b7280;
    margin-bottom: 30px;
}

.success-modal .modal-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.success-modal .modal-btn:hover {
    background: #1d4ed8;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn i {
    font-size: 1.8rem;
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form {
        padding: 30px 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .map-info-container {
        gap: 20px;
    }
    
    .map-container,
    .additional-info {
        padding: 25px;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 0 20px 20px;
    }
    
    .faq-item.active .faq-answer {
        max-height: 400px !important;
        padding: 0 20px 20px !important;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        height: 280px;
        margin-top: 70px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .contact-cards-section,
    .contact-form-section,
    .faq-section {
        padding: 60px 0;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .contact-form-container h2 {
        font-size: 1.8rem;
    }
    
    .faq-section h2 {
        font-size: 2rem;
    }
    
    .faq-question {
        padding: 18px 15px;
        font-size: 0.9rem;
    }
    
    .faq-answer {
        padding: 0 15px 18px;
    }
    
    .faq-item.active .faq-answer {
        max-height: 500px !important;
        padding: 0 15px 18px !important;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-btn i {
        font-size: 1.5rem;
    }
}

/* Alert Messages */
.alert-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    color: #991b1b;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    animation: alertSlideIn 0.3s ease-out;
}

.alert-error i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.alert-error span {
    flex: 1;
    font-weight: 500;
}

.alert-close {
    background: none;
    border: none;
    color: #991b1b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.alert-close:hover {
    background: rgba(153, 27, 27, 0.1);
}

.alert-close i {
    font-size: 0.9rem;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
