/* =====================================
   BASE RESETS & TYPOGRAPHY
   ===================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  transition: var(--transition);
}


.highlight {
  color: var(--color-accent);
  font-weight: 700;
}

* { box-sizing: border-box; margin: 0; padding: 0; }


a { color: var(--color-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-accent); }

ul{
  list-style: none;
}

/* ======================================
   Global Form Styling 
   ====================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--color-border, #ddd);
  border-radius: 0.65rem;
  background: var(--color-white, #fff);
  color: var(--color-text, #222);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  font-family: inherit;
  line-height: 1.5;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- Focus effect --- */
input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-accent, #00b4aa);
  box-shadow: 0 0 0 4px rgba(0, 180, 170, 0.15);
  outline: none;
}

/* --- Labels --- */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-primary, #0c6f6d);
}

/* --- Small help text --- */
small,
.form-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted, #666);
  margin-top: 0.3rem;
}

/* --- Buttons --- */
button,
.btn,
input[type="submit"] {
  display: inline-block;
  background: var(--color-primary, #0c6f6d);
  color: #fff;
  border: none;
  padding: 0.9rem 1.6rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

button:hover,
.btn:hover,
input[type="submit"]:hover {
  background: var(--color-accent, #00b4aa);
  transform: translateY(-2px);
}

/* --- Form group spacing --- */
fieldset {
  margin-bottom: 0.8rem;
  border: none;        /* removes that default browser box */
  padding: 0;          /* keeps it tight inside cards */
}

/* Add a little vertical rhythm between labels and inputs */
label + input,
label + select,
label + textarea {
  margin-top: 0.4rem;
}

/* Forms inside cards or panels */
form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Buttons not stuck to the last field */
form button,
form .btn,
form input[type="submit"] {
  margin-top: 0.6rem;
  align-self: start; /* prevents full width buttons unless you want them */
}

/* Optional — if fields look too wide on small screens */
@media (max-width: 480px) {
  input,
  select,
  textarea {
    font-size: 0.95rem;
    padding: 0.8rem 0.9rem;
  }
}
