﻿/* --------------------------
   GENEL RESET + TEMA
--------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f2f4f7; /* Açık gri kurumsal arka plan */
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 680px;
    margin: 50px auto;
    padding: 20px;
}

/* --------------------------
   BAŞLIK
--------------------------- */
header {
    text-align: center;
    margin-bottom: 35px;
}

    header .logo {
        max-height: 60px;
        margin-bottom: 15px;
    }

h1 {
    font-size: 2em;
    font-weight: 700;
    color: #005bb5; /* Kurumsal mavi */
    margin-bottom: 10px;
}

header p {
    font-size: 0.95em;
    color: #576574;
}

/* --------------------------
   FORM KARTI
--------------------------- */
.form-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e6e9ef;
}

.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: #34495e;
    font-size: 0.95em;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #d0d7df;
    border-radius: 6px;
    font-size: 1em;
    transition: 0.25s ease;
    background-color: #fafbfc;
}

    input:focus,
    textarea:focus {
        border-color: #005bb5;
        background-color: #fff;
        box-shadow: 0 0 0 3px rgba(0, 91, 181, 0.15);
        outline: none;
    }

textarea {
    resize: vertical;
}

/* --------------------------
   AYDINLATMA METNİ & CHECKBOX
--------------------------- */
.policy-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 25px;
}

    .policy-group input[type="checkbox"] {
        margin-top: 4px;
        cursor: pointer;
    }

    .policy-group label {
        font-weight: 500;
        color: #34495e;
    }

    .policy-group a {
        color: #005bb5;
        font-weight: 600;
        text-decoration: none;
    }

        .policy-group a:hover {
            text-decoration: underline;
        }

/* --------------------------
   HATA MESAJLARI
--------------------------- */
.error-message {
    color: #d93025;
    font-size: 0.85em;
    display: none;
    margin-top: 5px;
}

/* --------------------------
   BUTON
--------------------------- */
button[type="submit"] {
    width: 100%;
    padding: 14px;
    border: none;
    background: #005bb5; /* Kurumsal mavi */
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.25s ease;
    cursor: pointer;
    margin-top: 15px;
}

    button[type="submit"]:hover:not(:disabled) {
        background: #003f80;
    }

    button[type="submit"]:disabled {
        background: #a7c2df;
        cursor: not-allowed;
    }

/* --------------------------
   MODAL GENEL
--------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none; /* Varsayılan kapalı */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

    .modal-overlay.is-open {
        display: flex; /* Açıkken flex ile ortala */
    }

/* Modal kutusu */
.modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 420px;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    /* Animasyon */
    transform: translateY(-20px);
    opacity: 0;
    animation: modalPop 0.35s ease-out forwards;
}

@keyframes modalPop {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-box h2 {
    font-size: 1.5em;
    font-weight: 700;
    color: #005bb5;
    margin-bottom: 12px;
}

.modal-box p {
    color: #4b4b4b;
    font-size: 1em;
    line-height: 1.5;
}

/* Modal butonu */
.modal-button {
    margin-top: 20px;
    padding: 12px 24px;
    background: #27ae60; /* Yeşil vurgulu */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}

    .modal-button:hover {
        background: #1e8f4e;
    }

/* --------------------------
   RESPONSIVE
--------------------------- */
@media (max-width: 600px) {
    .form-card {
        padding: 25px;
    }

    h1 {
        font-size: 1.6em;
    }

    .modal-box {
        padding: 20px;
    }
}
