body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;  
}
h1{
    text-align: center;
}


header {
    background-color:burlywood;
    color: white;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
}

nav ul li a:hover {
    background-color: rgb(228, 142, 29);
    border-radius: 5px;
}

main {
    padding: 5px;
    text-align: center;
}

footer {
    background-color: burlywood;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

section {
  text-align: center;
  margin-top: 30px;
}


/* Layout */
:root {
  --radius: 10px;
  --border: #c9c9c9;
  --primary: #0b5ed7;
  --primary-ghost: #e7f0ff;
  --text: #222;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #f7f7f7;
}

.container {
  width: min(860px, 92%);
  margin: 48px auto;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Tabs row */
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 18px;
  flex-wrap: wrap;
}

.tabbtn {
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform .05s ease-in, background .2s, color .2s, border-color .2s;
}

.tabbtn:hover { transform: translateY(-1px); }

.tabbtn.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

/* Panels */
.tabcontent {
  display: block;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

/* Use [hidden] for a11y-friendly hide */
.tabcontent[hidden] {
  display: none;
}

/* Nice headings */
h1 { margin: 0 0 12px; font-size: 28px; }
h2 { margin: 0 0 10px; font-size: 20px; }


/*scenario 3 */

#section3 {
  width: 50%;
  margin: 40px auto;
  padding: 30px;
  border: 2px solid #333;
  border-radius: 12px;
  background-color: #f8f9fa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: Arial, Helvetica, sans-serif;
}


#section3 form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


#section3 label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: #222;
}

#section3 input[type="text"],
#section3 input[type="email"],
#section3 input[type="tel"],
#section3 textarea,
#section3 select,
#section3 input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #999;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 15px;
  background-color: #fff;
}

#section3 textarea {
  resize: vertical;
}


#section3 fieldset {
  border: 2px solid #888;
  border-radius: 10px;
  padding: 15px 20px;
  background-color: #ffffff;
}

#section3 legend {
  font-weight: bold;
  color: #333;
  padding: 0 10px;
}


#section3 input[type="checkbox"],
#section3 input[type="radio"] {
  margin-right: 5px;
  accent-color: #0078d7; /* modern browsers */
}


#section3 input[type="file"] {
  border: 1px solid #888;
  background-color: #fff;
  padding: 6px;
}


#section3 button[type="submit"] {
  background-color: #0078d7;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#section3 button[type="submit"]:hover {
  background-color: #005fa3;
}

/* Responsive Layout */
@media (max-width: 768px) {
  #section3 {
    width: 90%;
    padding: 20px;
  }
}

.error {
  color: red;
  font-size: 13px;
  margin-top: 2px;
  display: block;
  min-height: 16px; /* keeps layout stable */
}