/* ==========================================================================
   Contact Page CSS
   ========================================================================== */

.contact-hero {
    min-height: 100vh;
    height: auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 1rem 3rem;
    width: 100%;
}

/* --- Layout: Form + Panel --- */
.contact-layout {
    display: flex;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    transition: max-width 0.5s ease;
}

.contact-layout.has-panel {
    max-width: 1400px;
}

/* --- Form Wrapper --- */
.contact-form-wrapper {
    width: 100%;
    max-width: 600px;
    background: rgba(30, 30, 30, 0.65);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    flex-shrink: 0;
    transition: max-width 0.5s ease;
}

.contact-layout.has-panel .contact-form-wrapper {
    max-width: 600px;
}

/* --- Başlık & Açıklama --- */
.contact-form-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 32px;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.contact-form-desc {
    font-family: 'Satoshi', sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 2.25rem;
    line-height: 1.5;
}

/* --- Alerts --- */
.contact-alert {
    font-family: 'Satoshi', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-alert-success {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.contact-alert-error {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
    border: 1px solid rgba(233, 30, 99, 0.2);
}

/* --- Form --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-field input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 12px 14px;
    font-family: 'Satoshi', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #fff;
    outline: none;
    border-radius: 0;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.contact-field input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.contact-field input:focus {
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

/* --- Kategori Butonları --- */
.contact-categories {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 1.5rem 0 0.5rem;
}

.contact-category {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.contact-category:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.06);
}

.contact-category.is-active {
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    border-color: color-mix(in srgb, var(--accent) 50%, transparent);
    color: #fff;
}

/* --- Seçilen Hizmetler Badge --- */
.contact-selected-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-top: 0.75rem;
    min-height: 0;
}

.contact-selected-services:empty {
    display: none;
}

.contact-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Satoshi', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: color-mix(in srgb, var(--accent) 20%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    border-radius: 20px;
    padding: 5px 12px;
    animation: badgeIn 0.25s ease;
}

@keyframes badgeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.contact-service-badge button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.contact-service-badge button:hover {
    color: #fff;
}

/* --- Submit --- */
.contact-submit {
    width: 100%;
    padding: 18px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.12em;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background 0.4s ease, transform 0.2s ease;
}

.contact-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* --- Back Link --- */
.contact-back-link {
    display: inline-block;
    margin-top: 2rem;
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.3s ease;
}

.contact-back-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Desktop: Sağ Panel (Hizmet Listesi)
   ========================================================================== */

.contact-services-panel {
    width: 0;
    max-width: 500px;
    overflow: hidden;
    opacity: 0;
    background: rgba(30, 30, 30, 0.65);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    transition: width 0.5s ease, opacity 0.4s ease, padding 0.5s ease;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
}

.contact-services-panel.is-open {
    width: 500px;
    opacity: 1;
    padding: 2rem;
}

.contact-services-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.contact-services-panel-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    line-height: 1.3;
}

.contact-services-panel-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.contact-services-panel-close:hover {
    color: #fff;
}

.contact-services-panel-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    max-height: 400px;
}

/* Hizmet checkbox item */
.contact-service-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-service-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.contact-service-check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.contact-service-item.is-checked .contact-service-check {
    background: var(--accent);
    border-color: var(--accent);
}

.contact-service-check svg {
    width: 12px;
    height: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.contact-service-item.is-checked .contact-service-check svg {
    opacity: 1;
}

.contact-service-name {
    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.contact-service-item.is-checked .contact-service-name {
    color: #fff;
}

/* ==========================================================================
   Mobil: Bottom Sheet
   ========================================================================== */

.contact-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-sheet-overlay.is-active {
    display: block;
    opacity: 1;
}

.contact-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-radius: 20px 20px 0 0;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem 1.5rem;
}

.contact-sheet.is-active {
    transform: translateY(0);
}

.contact-sheet-handle {
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
}

.contact-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0 1rem;
    flex-shrink: 0;
}

.contact-sheet-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}

.contact-sheet-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.contact-sheet-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.contact-sheet-done {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-top: 1rem;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.contact-sheet-done:hover {
    background: var(--accent-hover);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Desktop: panel görünür, sheet gizli */
@media (min-width: 769px) {
    .contact-sheet-overlay,
    .contact-sheet {
        display: none !important;
    }
}

/* Tablet & Mobil: panel gizli, sheet aktif */
@media (max-width: 768px) {
    .contact-hero .container {
        padding: 100px 1.25rem 2rem;
    }

    .contact-layout {
        max-width: 100%;
    }

    .contact-services-panel {
        display: none !important;
    }

    .contact-form-wrapper {
        padding: 2.5rem 2rem;
        border-radius: 20px;
        max-width: 100%;
    }

    .contact-form-title {
        font-size: 28px;
    }

    .contact-categories {
        justify-content: center;
    }

    .contact-submit,
    .contact-whatsapp-btn {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .contact-hero .container {
        padding: 80px 1rem 1.5rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 18px;
    }

    .contact-form-title {
        font-size: 24px;
    }

    .contact-form-desc {
        font-size: 13px;
    }

    .contact-categories {
        flex-direction: column;
    }

    .contact-category {
        flex: auto;
        padding: 12px;
        font-size: 12px;
    }
}
