﻿body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    touch-action: manipulation;
}

/* ---------- SABIT BAŞLIK ---------- */
.sticky-header {
    width: 100%;
    max-width: 768px;
    height: 60px;
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    background-color: #1976d2;
    color: #fff;
    padding: 5px;
    gap: 10px;
    box-sizing: border-box;
    z-index: 10;
}

    .sticky-header h3 {
        font-size: 1rem;
        font-weight: 600;
    }

/* ---------- ANA KONTEYNER ---------- */
.container {
    position: fixed;
    top: 60px;
    bottom: 0; /* mainmenu yok, alta kadar */
    left: 0;
    right: 0;
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* ---------- FORM ---------- */
form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group {
    position: relative;
    margin-top: 15px;
    margin-bottom: 25px;
    box-sizing: border-box;
}

    /* Textarea grubu kalan alanı doldursun */
    .form-group.msg-group {
        flex: 1;
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
    }

    .form-group label {
        position: absolute;
        padding: 0 5px;
        border-radius: 5px;
        border: solid 1px #ccc;
        top: -12px;
        left: 15px;
        background-color: #fff;
        font-size: 14px;
        color: #333;
        z-index: 1;
        display: block;
    }

.form-control {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
    background-color: #fff;
}

    .form-control:focus {
        border-color: #007bff;
    }

.form-group:has(.form-control:focus) label {
    background-color: #007bff;
    border: none;
    color: #fff;
}

/* Textarea kalan alanı doldursun */
.form-group.msg-group .form-control {
    flex: 1;
    resize: none;
    font-family: inherit;
    min-height: 100px;
}

/* ---------- BUTON BARI ---------- */
.buttons-bar {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
}