:root {
  --primary-color: #0078d4;
  --primary-hover: #005a9e;
  --background-color: #f8f8f8;
  --text-color: #333;
  --white: #ffffff;
  --border-color: #ccc;
  --footer-bg: #222;
  --footer-text: #ddd;
  --panel-width: 380px;
}

* {
  box-sizing: border-box
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--background-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 80%;
  margin: 0 auto;
  padding-bottom: 40px;
}

header {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1200;
}

header h1 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary-color);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
}

nav a:hover {
  color: var(--primary-hover);
}

.banner {
  background: url('../images/hero.png') no-repeat center center/cover;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

section {
  background: var(--white);
  padding: 32px;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
}

.two-column {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.left,
.right {
  width: 50%;
  padding: 8px;
}

.right img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

h2 {
  margin-top: 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

input[type="text"],
input[type="email"],
select,
textarea {
  padding: 10px;
  font-size: 1rem;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

button {
  width: 120px;
  padding: 8px 10px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  align-self: flex-start;
}

button:hover {
  background: var(--primary-hover);
}

.radio-group {
  display: flex;
  gap: 18px;
  align-items: center;
}

.register-panel {
  position: fixed;
  top: 0;
  right: calc(-1 * var(--panel-width));
  width: var(--panel-width);
  height: 100%;
  background: var(--white);
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.15);
  padding: 22px;
  transition: right 0.36s cubic-bezier(.2, .9, .2, 1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.register-panel.active {
  right: 0;
}

.register-panel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.register-panel h3 {
  margin: 0;
  font-size: 1.1rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-color);
  padding: 6px;
  border-radius: 6px;
}

.close-btn:hover {
  background: #f2f2f2;
}

.panel-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
  flex: 1;
}

.panel-form input {
  width: 100%;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease;
  z-index: 1900;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 18px;
  margin-top: 28px;
  border-radius: 6px;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 8px;
}

footer a:hover {
  color: var(--primary-hover);
}

@media (max-width:900px) {
  .container {
    width: 92%;
  }

  .two-column {
    flex-direction: column;
  }

  .left,
  .right {
    width: 100%;
  }

  .register-panel {
    width: 100%;
    right: calc(-100%);
    --panel-width: 100%;
  }

  .register-panel.active {
    right: 0;
  }

  button {
    width: 110px;
  }
}

.name-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.name-row .field {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}

/* Ensure labels and inputs keep consistent spacing */
.field label {
  margin-bottom: 6px;
  font-weight: 600;
}

/* Responsive: stack on small screens */
@media (max-width: 640px) {
  .name-row {
    flex-direction: column;
  }
}