/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

/* Header */
header {
  background: #0077cc;
  color: white;
  padding: 1rem;
}

header h1 {
  margin-bottom: 0.5rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Main layout */
main {
  display: flex;
  gap: 2rem;
  padding: 1.5rem;
}

.content {
  flex: 3;
}

.sidebar {
  flex: 1;
  background: #eaeaea;
  padding: 1rem;
  border-radius: 8px;
}

/* Form styles */
.form-group {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

fieldset.form-group {
  border: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
}

fieldset.form-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1rem;
  font-weight: 500;
}

/* Make radio/checkbox labels and inline inputs look tidy */
fieldset.form-group input[type="radio"] {
  transform: scale(1.05);
}

/* Ensure the small text inputs (other-flavor, delivery-location) match other inputs */
#other-flavor,
#delivery-location {
  display: block;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  max-width: 360px;
}

.form-actions {
  margin-top: 0.5rem;
}

.form-actions button {
  background: #0077cc;
  color: white;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.form-actions button:hover {
  background: #005fa3;
}

.form-message {
  margin-top: 0.75rem;
  min-height: 1.2rem;
}

.form-message.error {
  color: #b91c1c;
}

.form-message.success {
  color: #0f5132;
}

.upcharge {
  font-size: 0.9rem;
  color: #555;
  margin-left: 0.25rem;
  font-weight: 600;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #222;
  color: white;
  margin-top: 2rem;
}

/* Dark mode */
.dark-mode {
  background-color: #222;
  color: #eee;
}

.dark-mode header {
  background: #111;
}

.dark-mode footer {
  background: #111;
}

.dark-mode .sidebar {
  background: #333;
}

/* Dark mode form adjustments */
.dark-mode .form-group input[type="text"],
.dark-mode .form-group input[type="email"],
.dark-mode .form-group input[type="tel"] {
  background: #2b2b2b;
  color: #eee;
  border: 1px solid #444;
}

.dark-mode fieldset.form-group label {
  color: #ddd;
}

.dark-mode .upcharge {
  color: #ccc;
}
