:root {
    /* MASAÜSTÜ FORM GENİŞLİĞİ: Değiştirmek için sadece aşağıdaki rakamı düzenleyin */
    --form-genislik: 700px;

    --bg-page: #0a0a0b;
    --bg-header: #26272b;
    --bg-body: #000000;
    --bg-input: #141519;
    --border-card: #2c2d33;
    --border-input: #343740;
    --accent-yellow: #facc15;
    --accent-yellow-hover: #eab308;
    --text-white: #ffffff;
    --text-muted: #9ca3af;
    --error-bg: #3b1219;
    --error-border: #ef4444;
    --success-bg: #0f2e1e;
    --success-border: #22c55e;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-page);
    color: var(--text-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 40px;
}

.top-nav {
    width: 100%;
    max-width: var(--form-genislik);
    margin-bottom: 12px;
    display: flex;
    justify-content: flex-start;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent-yellow);
}

.contact-card {
    width: 100%;
    max-width: var(--form-genislik);
    background-color: var(--bg-body);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.card-header {
    background-color: var(--bg-header);
    padding: 28px 32px;
    text-align: center;
    border-bottom: 1px solid var(--border-card);
}

.header-line {
    margin: 0 0 8px;
    color: var(--accent-yellow);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.header-line-secondary {
    margin: 0 0 12px;
    color: var(--accent-yellow);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.header-subtitle {
    margin: 0;
    color: #f3f4f6;
    font-size: 14.5px;
    font-weight: 400;
}

.card-body {
    padding: 32px 36px 36px;
    background-color: var(--bg-body);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-white);
}

.form-control {
    width: 100%;
    background-color: var(--bg-input);
    color: var(--text-white);
    border: 1px solid var(--border-input);
    border-radius: 6px;
    padding: 13px 15px;
    font-size: 15.5px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.16);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' 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 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.phone-row {
    display: flex;
    gap: 10px;
}

.dial-input {
    width: 105px;
    flex-shrink: 0;
    text-align: center;
    font-weight: 600;
    color: var(--accent-yellow);
}

.phone-input {
    flex: 1;
}

textarea.form-control {
    min-height: 145px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    margin-top: 8px;
    padding: 15px 22px;
    background-color: var(--accent-yellow);
    color: #000000;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.submit-btn:hover {
    background-color: var(--accent-yellow-hover);
}

.submit-btn:active {
    transform: scale(0.99);
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.form-alert {
    display: none;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 14.5px;
}

.form-alert.show {
    display: block;
}

.form-alert.error {
    background-color: var(--error-bg);
    border: 1px solid var(--error-border);
    color: #fecaca;
}

.form-alert.success {
    background-color: var(--success-bg);
    border: 1px solid var(--success-border);
    color: #bbf7d0;
}

.form-alert strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15.5px;
}

.card-footer {
    background-color: var(--bg-header);
    padding: 16px 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #e5e7eb;
    border-top: 1px solid var(--border-card);
}

/* Bot tuzağı (kullanıcı görmez) */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 640px) {
    .page-wrapper {
        padding: 16px 10px 28px;
    }

    .top-nav,
    .contact-card {
        width: 96%;
    }

    .card-header {
        padding: 22px 18px;
    }

    .header-line {
        font-size: 18px;
    }

    .header-line-secondary {
        font-size: 14.5px;
    }

    .card-body {
        padding: 22px 18px 26px;
    }

    .form-control {
        font-size: 16px; /* iOS Safari otomatik yakınlaştırmasını önler */
        padding: 12px 13px;
    }

    .dial-input {
        width: 88px;
    }
}

/* Pop-Over (Modal) Modu - Sadece ?modal=1 ile açıldığında çalışır */
body.is-modal {
    background-color: #000000;
}

body.is-modal .page-wrapper {
    min-height: auto;
    padding: 0;
    display: block;
}

body.is-modal .top-nav {
    display: none;
}

body.is-modal .contact-card {
    width: 100%;
    max-width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

body.is-modal .card-header {
    padding: 18px 40px 18px 20px;
}

body.is-modal .header-line {
    font-size: 18px;
    margin-bottom: 5px;
}

body.is-modal .header-line-secondary {
    font-size: 14px;
    margin-bottom: 8px;
}

body.is-modal .header-subtitle {
    font-size: 13px;
}

body.is-modal .card-body {
    padding: 18px 22px 22px;
}

body.is-modal .form-group {
    margin-bottom: 13px;
}

body.is-modal .form-control {
    padding: 10px 12px;
    font-size: 15px;
}

body.is-modal textarea.form-control {
    min-height: 95px;
}

body.is-modal .card-footer {
    padding: 12px 16px;
    font-size: 12.5px;
}

@media (max-width: 640px) {
    body.is-modal .contact-card {
        width: 100%;
    }

    body.is-modal .card-body {
        padding: 16px 15px 20px;
    }

    body.is-modal .form-control {
        font-size: 16px;
    }
}