/**
 * Footer / Əlaqə bölməsi — açıq fon, modern UI
 */

#footer.contact {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 45%, #fef6e4 100%);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 5rem 0 0;
    position: relative;
    overflow: hidden;
}

#footer.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 15% 10%, rgba(220, 20, 60, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 88% 75%, rgba(99, 102, 241, 0.07) 0%, transparent 50%);
    pointer-events: none;
}

#footer .container {
    position: relative;
    z-index: 1;
}

#footer .section-header {
    margin-bottom: 3rem;
}

#footer .section-badge {
    background: rgba(220, 20, 60, 0.1);
    color: #dc143c;
    border: 1px solid rgba(220, 20, 60, 0.2);
}

#footer .section-title {
    color: #0f172a;
}

#footer .section-subtitle {
    color: #64748b;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

#footer .contact-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: start;
}

/* Form kartı */
#footer .contact-form1 {
    background: #ffffff;
    padding: 2.25rem 2rem;
    border-radius: 24px;
    border: 1px solid #e8ecf1;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 20px 40px rgba(15, 23, 42, 0.08);
}

#footer .form-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

#footer .form-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

#footer .form-header p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

#footer .form-group {
    margin-bottom: 1.15rem;
}

#footer .form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

#footer .form-group input,
#footer .form-group textarea,
#footer .form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#footer .form-group input:focus,
#footer .form-group textarea:focus,
#footer .form-group select:focus {
    outline: none;
    border-color: #dc143c;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.12);
}

#footer .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

#footer .btn-large {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #dc143c 0%, #b91c3c 100%);
    color: #fff;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.28);
}

#footer .btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(220, 20, 60, 0.38);
}

/* Sağ panel */
#footer .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#footer .next-steps-card,
#footer .get-in-touch-card {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    padding: 1.75rem 1.5rem;
    border-radius: 20px;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 16px 32px rgba(15, 23, 42, 0.06);
}

#footer .next-steps-card h3,
#footer .get-in-touch-card h3 {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

#footer .step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
}

#footer .step-item:last-child {
    margin-bottom: 0;
}

#footer .step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 52px;
    width: 2px;
    height: calc(100% - 28px);
    background: linear-gradient(to bottom, rgba(220, 20, 60, 0.35), transparent);
}

#footer .step-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #dc143c 0%, #9f1239 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(220, 20, 60, 0.25);
}

#footer .step-content h4 {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

#footer .step-content p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

#footer .contact-methods {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

#footer .contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e8ecf1;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#footer .contact-method:hover {
    background: #fff;
    border-color: rgba(220, 20, 60, 0.25);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

#footer .contact-method i {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #dc143c 0%, #9f1239 100%);
    border-radius: 12px;
    font-size: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

#footer .contact-method h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.15rem;
}

#footer .contact-method p {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

#footer .social-section {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid #e8ecf1;
}

#footer .social-section h4 {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

#footer .social-links {
    gap: 0.75rem;
}

#footer .social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.1rem;
}

#footer .footer-credit-bar {
    margin-top: 3rem;
    padding: 1.25rem 0 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

#footer .footer-credit-bar a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer .footer-credit-bar a:hover {
    color: #dc143c;
}

#footer .footer-credit-bar img {
    height: 18px;
    width: auto;
    opacity: 0.75;
    vertical-align: middle;
}

/* Success modal */
.success-message-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.success-message-content {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    max-width: 400px;
    width: 100%;
    animation: footerSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.success-icon {
    font-size: 3.5rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.success-message-content h3 {
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.success-message-content p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

@keyframes footerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-24px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes footerSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-16px) scale(0.98);
    }
}

.success-message-modal.fade-out {
    animation: footerSlideOut 0.3s ease-in forwards;
}

@media (max-width: 992px) {
    #footer .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    #footer.contact {
        padding: 3.5rem 0 0;
    }

    #footer .contact-form1 {
        padding: 1.5rem 1.25rem;
        border-radius: 18px;
    }

    #footer .next-steps-card,
    #footer .get-in-touch-card {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }

    #footer .step-item:not(:last-child)::after {
        display: none;
    }
}
