/* ── Contact Page Styles ── */

/* Navigation – 3-parçalı flex layout */
.contact-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(14, 14, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(183, 168, 106, 0.1);
}

/* Hero Banner */
.contact-hero {
    position: relative;
    height: 400px;
    padding-top: 70px;
    background: linear-gradient(160deg, #08080a 0%, #12120e 40%, #0e0e0e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.08) 2px,
            rgba(0, 0, 0, 0.08) 4px);
}

.hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

/* Hero Badge */
.hero-badge {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
}

.hero-badge img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.badge-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: rgba(183, 168, 106, 0.6);
    border-right-color: rgba(183, 168, 106, 0.2);
    animation: ringRotate 4s linear infinite;
}

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

/* Hero Icon */
.hero-icon-wrapper {
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-main-icon {
    width: 56px !important;
    height: 56px !important;
    fill: #b7a86a !important;
    filter: drop-shadow(0 0 12px rgba(183, 168, 106, 0.4));
}

.hero-content h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(48px, 8vw, 72px);
    letter-spacing: 16px;
    color: #b7a86a;
    margin: 0;
    line-height: 1;
    text-shadow: 0 0 40px rgba(183, 168, 106, 0.15);
}

/* Breadcrumb */
.hero-breadcrumb {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hero-breadcrumb a {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.hero-breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.65);
}

.breadcrumb-sep {
    color: rgba(183, 168, 106, 0.5);
    font-size: 14px;
}

.breadcrumb-current {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: #b7a86a;
    text-transform: uppercase;
}

/* Hero bottom line */
.hero-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(183, 168, 106, 0.5), transparent);
    z-index: 3;
}

/* Contact Section */
.contact-section {
    background-color: #0e0e0e;
    padding: 80px 40px;
    min-height: 60vh;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: start;
}

/* Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(183, 168, 106, 0.1);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.info-card:hover {
    border-color: rgba(183, 168, 106, 0.3);
    transform: translateX(4px);
}

.info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(183, 168, 106, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 22px;
    height: 22px;
    fill: #b7a86a;
}

.info-content h3 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    color: #b7a86a;
    margin: 0 0 6px;
}

.info-content p {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.6;
}

/* Form Wrapper */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(183, 168, 106, 0.12);
    border-radius: 18px;
    padding: 40px;
}

.form-header h2 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 28px;
    letter-spacing: 4px;
    color: #b7a86a;
    margin: 0;
}

.form-divider {
    width: 40px;
    height: 2px;
    background: #b7a86a;
    margin: 12px 0 30px;
    border-radius: 1px;
}

/* Form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    font-family: "Exo", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.45);
    display: block;
    margin-bottom: 8px;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: rgba(183, 168, 106, 0.4);
    box-shadow: 0 0 0 3px rgba(183, 168, 106, 0.06);
}

/* Validation States */
.input-wrapper.error {
    border-color: rgba(220, 53, 69, 0.6);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.08);
    animation: shake 0.4s ease;
}

.input-wrapper.success {
    border-color: rgba(40, 167, 69, 0.5);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.06);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.input-wrapper:focus-within .input-icon {
    opacity: 0.7;
}

.textarea-icon {
    top: 18px;
    transform: none;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    padding: 14px 16px 14px 48px;
}

.input-wrapper select {
    appearance: none;
    cursor: pointer;
}

.input-wrapper select option {
    background: #0e0e0e;
    color: rgba(255, 255, 255, 0.85);
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 120px;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.optional-label {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    letter-spacing: 1px;
}

/* Error Message Base Styles */
.error-message {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    color: #dc3545;
    /* Kırmızı renk */
    display: block;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    padding-left: 4px;
}

.error-message.visible {
    min-height: 20px;
    max-height: 30px;
    opacity: 1;
    margin-top: 6px;
}

/* Checkbox Styles */
.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    top: 2px;
    flex-shrink: 0;
    display: inline-block;
    /* Ensure it behaves like a block element inline */
    height: 18px;
    width: 18px;
    background: rgba(255, 255, 255, 0.05);
    /* Make default background slightly visible */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Make border more visible */
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10;
}

.checkbox-container:hover input~.checkmark {
    border-color: rgba(183, 168, 106, 0.8);
    /* Stronger hover effect */
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-container input:checked~.checkmark {
    background: #b7a86a;
    border-color: #b7a86a;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #0e0e0e;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-text {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.kvkk-link {
    color: #b7a86a;
    text-decoration: none;
    border-bottom: 1px solid rgba(183, 168, 106, 0.3);
    transition: all 0.3s ease;
}

.kvkk-link:hover {
    color: #dec87a;
    border-bottom-color: #dec87a;
}

.checkbox-group.error .checkmark {
    border-color: rgba(220, 53, 69, 0.6);
}

/* Submit Button */
.submit-btn {
    position: relative;
    width: 100%;
    padding: 16px;
    margin-top: 8px;
    background: linear-gradient(135deg, #b7a86a 0%, #9a8d58 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(183, 168, 106, 0.2);
}

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

.btn-text {
    font-family: "Bebas Neue", sans-serif;
    font-size: 18px;
    letter-spacing: 4px;
    color: #0e0e0e;
    transition: opacity 0.3s ease;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border: 2px solid rgba(14, 14, 14, 0.2);
    border-top-color: #0e0e0e;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn.loading .btn-loader {
    opacity: 1;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Alerts */
.form-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 10px;
    margin-top: 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.form-alert.visible {
    max-height: 100px;
    opacity: 1;
    display: flex !important;
    padding: 16px 20px;
}

.form-alert svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.form-alert strong {
    font-family: "Exo", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: block;
}

.form-alert p {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    margin: 2px 0 0;
    opacity: 0.7;
}

.success-alert {
    background: rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.25);
}

.success-alert svg {
    fill: #28a745;
}

.success-alert strong {
    color: #28a745;
}

.success-alert p {
    color: rgba(40, 167, 69, 0.8);
}

.error-alert {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.25);
}

.error-alert svg {
    fill: #dc3545;
}

.error-alert strong {
    color: #dc3545;
}

.error-alert p {
    color: rgba(220, 53, 69, 0.8);
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .info-card {
        flex: 1 1 calc(50% - 10px);
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }

    .nav-links li a {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .contact-hero {
        height: 280px;
    }

    .hero-badge {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
    }

    .hero-badge img {
        width: 70px;
        height: 70px;
    }

    .contact-section {
        padding: 50px 20px;
    }

    .contact-form-wrapper {
        padding: 28px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .info-card {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .nav-inner {
        padding: 0 16px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links li a {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .nav-logo-item img {
        width: 40px;
        height: 40px;
    }

    .hero-content h1 {
        letter-spacing: 8px;
    }
}

/* ── Responsive 768px ── */
@media (max-width: 768px) {
    .contact-hero {
        height: 280px;
    }

    .contact-section {
        padding: 40px 20px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form-wrapper {
        padding: 24px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-content h1 {
        font-size: clamp(36px, 10vw, 56px);
        letter-spacing: 8px;
    }
}

/* ── Responsive 480px ── */
@media (max-width: 480px) {
    .contact-hero {
        height: 240px;
    }

    .contact-section {
        padding: 28px 16px;
    }

    .hero-content h1 {
        font-size: clamp(28px, 10vw, 44px);
        letter-spacing: 5px;
    }

    .info-card {
        padding: 16px;
    }
}
