/* 1. Global reset & base styling --------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;                     /* base font size for rem units */
  line-height: 1.6;
}

body {
  margin: 0;
  padding: 1rem;
  background: #fafafa;                /* light neutral background */
  color: #222;
  font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* 2. Headings --------------------------------------------------------------------- */
h1, h2 {
  font-weight: 600;
  line-height: 1.2;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2.5rem;
  color: #222;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.25rem;
}

h2 {
  font-size: 1.75rem;
  color: #444;
}

/* 3. Links ------------------------------------------------------------------------ */
a {
  color: #0066cc;
  text-decoration: none;
  transition: color .2s ease;
}

a:hover, a:focus {
  color: #004999;
  text-decoration: underline;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 5. Form styling -------------------------------------------------------------- */
form {
  background: #fff;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 0.8rem;
  max-width: 600px;
}

label {
  display: block;
  margin-bottom: 0.1rem;
  font-weight: 500;
  line-height: 1.25;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.5rem 0.4rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.95rem;
  margin-top: 0.1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #0066cc;
  box-shadow: 0 0 4px rgba(0,102,204,0.2);
  outline: none;
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  display: inline-block;
  padding: 0.55rem 1.15rem;   /* smaller button padding */
  margin-top: 0.1rem;
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background .2s ease;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
  background: #004999;
}

/* 6. Responsive tweak for smaller screens ---------------------------------------- */
@media (max-width: 480px) {
  body { padding: 0.5rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* 7. Facebook icon */
.fa {
  padding: 20px;
  font-size: 1.75rem;
  width: 50px;
  text-align: center;
  text-decoration: none;
  border-radius: 30%;
}

.fa:hover {
  opacity: 0.7;
}

.fa-facebook {
  background: #3B5998;
  color: white;
}

