:root {
    --bg: #f8f9fa;
    --text: #222;
    --accent: #0d6efd;
    --accent-hover: #0b5ed7;
    --input-bg: #fff;
    --input-border: #ccc;
    --success: #28a745;
    --error: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Enable proper text wrapping everywhere */
body,
input,
textarea,
button,
p,
h1,
h2,
.note {
    word-break: break-word;
    overflow-wrap: break-word;
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

/* HEADINGS */
h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

h2 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 400;
    color: #555;
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    gap: 1rem;
}

/* INPUT FIELDS */
input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--accent);
}

/* TEXTAREA */
textarea {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    /* clean UI */
    min-height: 120px;
    transition: border-color 0.2s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* BUTTON */
button {
    background: var(--accent);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background: var(--accent-hover);
}

/* NOTE BLOCK */
.note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    text-align: center;
}

/* FOOTER */
footer {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #888;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Thin scrollbar */
::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-thumb {
    background: #b5b5b5;
    border-radius: 2px;
}

::-webkit-scrollbar-track {
    background: transparent;
}