/* ========================================
   CONTACT PAGE STYLES - Modern Design
   ======================================== */

/* Contact Hero */
.contact-hero {
    background: linear-gradient(135deg, #002b49 0%, #003d6b 50%, #005a94 100%);
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.contact-hero h1 {
    font-size: 2.4rem;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.contact-hero h1 i {
    margin-right: 12px;
    opacity: 0.95;
    color: #fff;
}

.contact-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    letter-spacing: 0.3px;
}

/* Contact Section */
.contact-section {
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef3f7 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Contact Form Card */
.contact-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    height: auto;
}

.contact-form-card h2 {
    font-size: 1.75rem;
    color: #002b49;
    margin-bottom: 12px;
    font-weight: 700;
}

.contact-form-card h2 i {
    color: #0078c1;
    margin-right: 10px;
}

.form-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 35px;
    line-height: 1.6;
    font-weight: 400;
}

.contact-form-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form-card .form-group {
    margin-bottom: 20px;
}

.contact-form-card label {
    display: block;
    font-size: 0.87rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.contact-form-card label i {
    color: #0078c1;
    margin-right: 7px;
    width: 16px;
    text-align: center;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
    color: #1f2937;
    transition: all 0.2s ease;
    background: #f9fafb;
    box-sizing: border-box;
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
    outline: none;
    border-color: #0078c1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 120, 193, 0.08);
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
    color: #b3b8c1;
    font-style: italic;
}

.contact-form-card textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-card select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0078c1;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.2px;
    width: 100%;
    justify-content: center;
}

.btn-submit:hover {
    background: #005a94;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 120, 193, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Contact Info Card */
.contact-info-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    height: auto;
}

.contact-info-card h2 {
    font-size: 1.5rem;
    color: #002b49;
    margin-bottom: 30px;
    font-weight: 700;
}

.contact-info-card h2 i {
    color: #0078c1;
    margin-right: 10px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #f3f4f6;
}

.info-item:last-of-type {
    border-bottom: none;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.info-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    background: #e8f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0078c1;
    font-size: 1.3rem;
}

.info-text h4 {
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.info-text a,
.info-text span {
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.info-text a:hover {
    color: #0078c1;
}

.map-go-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #cfe3f8;
    background: #eef6ff;
    color: #005a94;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.map-go-btn:hover {
    background: #dbeeff;
    border-color: #9ac8ee;
    color: #004673;
}

.support-inline {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #d9ebfb;
    border-radius: 12px;
    background: #f4f9ff;
    width: 100%;
    box-sizing: border-box;
}

.support-inline h5 {
    margin: 0 0 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #005a94;
    display: flex;
    align-items: center;
    gap: 6px;
}

.support-inline-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.35;
}

.support-inline-link {
    display: grid;
    grid-template-columns: 16px 1fr;
    align-items: start;
    column-gap: 8px;
    font-size: 0.88rem;
    color: #334155;
    text-decoration: none;
    margin-top: 6px;
    width: 100%;
    line-height: 1.4;
}

.support-inline-link i {
    color: #0078c1;
    width: 16px;
    text-align: center;
    margin-top: 1px;
}

.support-inline-link span {
    display: block;
    min-width: 0;
    word-break: break-word;
}

.support-inline-link .map-go-btn {
    grid-column: 2;
    justify-self: start;
}

.support-inline-link.has-map-action {
    row-gap: 8px;
}

.support-inline-link.has-map-action .map-go-btn {
    grid-row: 2;
}

.support-inline-link:hover {
    color: #0078c1;
}

/* Contact Social */
.contact-social {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.contact-social h3 {
    font-size: 0.98rem;
    color: #1a202c;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    transition: all 0.2s ease;
}

.social-links a.youtube {
    background: #ef4444;
}

.social-links a.instagram {
    background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Contact Map */
.contact-map {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.contact-map h3 {
    font-size: 0.98rem;
    color: #1a202c;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.contact-map h3 i {
    color: #0078c1;
    margin-right: 7px;
}

.map-placeholder {
    background: #f9fafb;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
}

.map-placeholder iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 12px;
}

.map-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
    color: #d1d5db;
}

.map-placeholder p {
    font-size: 0.85rem;
}

/* ========================================
   DEPARTMENT CARDS (Destek & Muhasebe)
   ======================================== */
.department-section {
    padding: 0 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef3f7 100%);
}

.department-grid {
    display: grid;
    grid-template-columns: minmax(320px, 560px);
    justify-content: center;
    gap: 40px;
}

.department-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
}

.department-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0078c1;
}

.department-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4ebff, #a8d8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #0078c1;
    font-size: 1.6rem;
}

.department-icon.accounting {
    background: linear-gradient(135deg, #d4ebff, #a8d8ff);
    color: #0078c1;
}

.department-card h3 {
    font-size: 1.35rem;
    color: #1a202c;
    margin-bottom: 12px;
    font-weight: 700;
}

.department-desc {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.department-person {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.department-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.department-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    background: #f3f4f6;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    width: 100%;
    box-sizing: border-box;
}

.department-link:hover {
    background: #e8f4ff;
    color: #0078c1;
    border-color: #0078c1;
}

.department-link i {
    color: #0078c1;
    width: 18px;
    text-align: center;
}

.department-link .map-go-btn {
    margin-left: auto;
    margin-top: 0;
}

.department-link.has-map-action {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 8px;
    align-items: start;
}

.department-link.has-map-action .map-go-btn {
    grid-column: 2;
    margin-left: 0;
    margin-top: 0;
    justify-self: start;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        align-items: start;
    }
    .department-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 768px) {
    /* Mobile spacing */
    .contact-hero {
        padding: 50px 0 40px;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-hero p {
        font-size: 0.95rem;
    }

    .contact-section {
        padding: 40px 0 60px;
    }

    .contact-form-card {
        padding: 30px;
    }

    .contact-form-card h2 {
        font-size: 1.4rem;
    }

    .contact-form-card .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-info-card {
        padding: 30px;
    }

    .info-item {
        gap: 12px;
        margin-bottom: 18px;
        padding-bottom: 18px;
    }

    .department-card {
        padding: 30px;
    }

    .department-card h3 {
        font-size: 1.2rem;
    }
}
