@charset "utf-8";

/* 1. Global Fix: Ensures padding doesn't break the width */
* {
    box-sizing: border-box;
}

body {
    background-color: #efefef;
    margin: 0;
    padding: 0;
    font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;
}

/* 2. Main Layout */
.container {
    width: 600px;
    margin: 20px auto;
    background-color: #ffffff;
    overflow: hidden; /* Clears internal floats */
}

/* 3. Navigation - Using Flexbox to keep everything in a straight line */
.nav {
    width: 600px;
    height: 50px;
    display: flex;
    background-color: #C4E1EE;
}

.NavItem {
    flex: 1;
    text-align: center;
    line-height: 50px; /* Vertically centers the text */
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
}

.selected {
    background-color: #FFFFFF;
}

.NavItem a {
    color: #000000;
    text-decoration: none;
    font-size: 20px;
    display: block;
}

/* 4. Content Area - Removed Floats to keep text straight */
.content {
    padding: 20px;
    min-height: 300px;
    width: 100%;
}

h1 {
    color: #518FAA;
    margin-top: 0;
}

/* 5. Paragraphs - Fixed: Removed float:left */
p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: block; /* Stacks paragraphs vertically */
    clear: both;
}

/* 6. Social Icons */
.socialicon {
    float: left;
}

.social {
    float: left;
    font-size: 25px;
    margin: 5px 0 0 10px;
}

.social a {
    text-decoration: none;
    color: #000000;
}

.social a:hover {
    color: #cc0000;
}

/* 7. Table Fixes */
table {
    width: 100%;
    border-collapse: collapse;
}

table td p {
    font-size: 15px;
    margin: 5px 0;
}

/* 8. Button - Perfectly straight and centered */
button {
    clear: both;
    display: block;
    margin: 20px 0;
    background-color: #518FAA;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #427e98;
}

/* 9. Footer */
.copyrights {
    background-color: #C4E1EE;
    padding: 10px 0;
    width: 600px;
    clear: both;
}

.copyrights p {
    margin-left: 20px;
    font-size: 13px;
    font-family: Consolas, "Andale Mono", monospace;
}
table.form{
    border-collapse: separate;
  border-spacing: 0 10px; /* vertical gap */
}
table.form tr{
    margin-bottom: 10px;
    vertical-align: top;
}

table.form input {
    border: 2px solid #C4E1EE ;
    height: 37px;
    width: 200px;
    border-radius: 6px;
}

table.form input:focus {
    outline: none; 
    border: 2px solid #518FAA;
}

table.form textarea:focus {
    outline: none; 
    border: 2px solid #518FAA;
}

table.form textarea {
    border: 2px solid #C4E1EE ;
    height: 100px;
    width: 200px;
    border-radius: 6px;
}

#gender {
  width: 200px;
  padding: 8px;
  border: 2px solid #C4E1EE;
  border-radius: 6px;
  background-color: #fff;
  font-size: 14px;
  cursor: pointer;
}

#gender:focus {
  outline: none;
  border-color: #5AA9C9;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.options label {
  display: flex;
  align-items: center;
  gap: 5px;
}
table.form div.options input[type="checkbox"] {
    width: 25px;
    height: 25px;
    border-radius: 3px;
    accent-color:#5AA9C9;
    border: 2px solid #C4E1EE;
}
