@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&family=Raleway&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Playfair Display", serif;
  background-color: #111;
}

.main {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
  text-align: center;
  transition: background-image 0.5s ease-in-out;
}

.content_box {
  max-width: 550px;
  background: rgba(63, 60, 60, 0.75);
  color: white;
  margin: auto;
  padding: 35px;
  border-radius: 10px;
  font-family: "Raleway", sans-serif;
}

.logo {
  width: 50px;
  margin-bottom: 20px;
}

h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.mb_5 { margin-bottom: 5px; }
.mb_10 { margin-bottom: 10px; }
.mb_20 { margin-bottom: 20px; }
.f_italic { font-style: italic; }

.bottom_text {
  text-align: center;
  color: white;
  max-width: 550px;
  margin: 0 auto;
}

.bottom_text::after {
  content: "";
  width: 95%;
  height: 20px;
  display: block;
  background: black;
  border-radius: 100%;
  filter: blur(10px);
  margin: 40px auto 0;
}

.year_switcher {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 0px;
  font-size: 20px;
  font-family: "Playfair Display", serif;
  color: white;
}

.year_arrow {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.year_arrow:hover {
  transform: scale(1.2);
}

.loading {
  font-size: 18px;
  margin-top: 50px;
}

.separator.dashed {
  width: 80px;
  height: 1px;
  border-bottom: 1px dashed white;
  margin: 20px auto;
}

/* Modal Styles */
.modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal_overlay.show {
  opacity: 1;
  visibility: visible;
}

.registration_modal {
  background: rgba(63, 60, 60, 0.95);
  border-radius: 12px;
  padding: 30px;
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal_overlay.show .registration_modal {
  transform: translateY(0);
}

.modal_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal_title {
  font-size: 24px;
  font-family: "Playfair Display", serif;
  color: white;
  margin: 0;
}

.modal_close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.modal_close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Form Styles */
.form_group {
  margin-bottom: 15px;
  text-align: left;
}

.form_group label {
  display: block;
  margin-bottom: 5px;
  color: white;
}

.form_group label small {
  font-size: 12px;
  color: #ccc;
  font-weight: normal;
  font-style: italic;
}

.form_group input,
.form_group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #555;
  border-radius: 4px;
  background: rgba(40, 40, 40, 0.9) !important;
  color: white !important;
  font-size: 14px;
}

.form_group input::placeholder {
  color: #ccc !important;
  font-style: italic;
}

.form_group input:focus,
.form_group select:focus {
  outline: none;
  border-color: #777;
  background: rgba(50, 50, 50, 0.9) !important;
}

/* Dropdown specific styling */
.form_group select option {
  background: #2a2a2a !important;
  color: white !important;
  padding: 8px;
}

.form_group select option[value=""] {
  font-style: italic;
  color: #ccc !important;
}

.form_group select option:checked {
  background: #4a5568 !important;
  color: white !important;
}

/* Remove autofill yellow background */
.form_group input:-webkit-autofill,
.form_group input:-webkit-autofill:hover,
.form_group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px rgba(40, 40, 40, 0.9) inset !important;
  -webkit-text-fill-color: white !important;
}

/* Button Styles */
.btn_secondary,
.register_btn {
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  height: 44px;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.btn_secondary {
  background: #666;
  color: white;
}

.btn_secondary:hover {
  background: #555;
}

.register_btn {
  background: #2c5f2d;
  color: white;
  margin-top: 15px;
}

.register_btn:hover {
  background: #1f4321;
}

.register_btn:disabled {
  background: #666;
  cursor: not-allowed;
}

.keep_posted_btn {
  background: #4a5568 !important;
}

.keep_posted_btn:hover {
  background: #2d3748 !important;
}

.form_actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  align-items: center;
}

.form_actions .register_btn {
  margin-top: 0px;
}

/* Message Styles */
.success_message {
  background: rgba(46, 125, 50, 0.8);
  color: white;
  padding: 15px;
  border-radius: 5px;
  margin-top: 15px;
}

.error_message {
  background: rgba(211, 47, 47, 0.8);
  color: white;
  padding: 15px;
  border-radius: 5px;
  margin-top: 15px;
}

.info_message {
  background: rgba(33, 150, 243, 0.8);
  color: white;
  padding: 15px;
  border-radius: 5px;
  margin-top: 15px;
}

/* Registration list styles (if needed later) */
.registrations_list {
  text-align: left;
  margin-top: 15px;
}

.registration_item {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  margin-bottom: 5px;
  border-radius: 4px;
  font-size: 14px;
}