* {
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    background-color: #ece8e3;
    color: #3a2a2a;
    font-size: 16px;
    line-height: 1.5;
}

nav {
    background-color: #3b2020;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 16px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav a {
    color: #f5eeea;
    text-decoration: none;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    padding: 14px 18px;
    display: inline-block;
    transition: background 0.2s;
}

nav a:hover {
    background-color: rgba(255,255,255,0.12);
}

header {
    background-color: #d4c8c0;
    text-align: center;
    padding: 48px 24px 52px;
    margin-top: 48px;
}

header h1 {
    font-size: 2.4rem;
    font-weight: normal;
    color: #4a2e2e;
    margin-bottom: 10px;
}

header p {
    font-size: 0.95rem;
    color: #6b5050;
    font-style: italic;
}

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 32px 60px;
}

fieldset {
    border-bottom: 1px solid #d0c8c0;
    padding: 40px 0 36px;
}

fieldset:last-child {
    border-bottom: none;
}

fieldset h2 {
    font-size: 1.5rem;
    font-weight: normal;
    color: #4a2e2e;
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.92rem;
    color: #4a3535;
    margin-bottom: 6px;
}

input[type="checkbox"], input[type="radio"] {
    transform: scale(1.5);
    accent-color: #3b2020;
    margin: 2px 6px 2px 2px;
    cursor: pointer;
}

select,
input[type="text"],
input[type="email"],
input[type="date"],
textarea {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    font-family: Georgia, serif;
    color: #3a2a2a;
    background-color: #ffffff;
    border: 1px solid #ccc4bc;
    border-radius: 4px;
    margin-top: 4px;
}

select,
input[type="text"],
input[type="email"],
input[type="date"] {
    margin-bottom: 20px;
}

select { cursor: pointer; appearance: auto; }
textarea { resize: vertical; }

select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
textarea:focus {
    outline: 2px solid #4a2e2e;
    outline-offset: 1px;
}

input[type="range"] {
    display: block;
    max-width: 320px;
    accent-color: #3b2020;
    cursor: pointer;
}

#Submit h2 {
    margin-bottom: 24px;
}

input[type="submit"] {
    padding: 10px 24px;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    background-color: #3b2020;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

input[type="submit"]:hover {
    background-color: #5a3030;
}
