@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

:root {
  --primary-color: #1a2e5a;
  --accent-blue: #4c96f1;
  --white: #ffffff;
  --bg-light-blue: #f0f5ff;
  --border-color: #dce4ec;
  --text-grey: #595959;
  --label-color: #2B2A29;
}

body {
  font-family: 'Gilroy', sans-serif;
  background-color: var(--white);
  margin: 0;
  padding: 40px 20px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  gap: 0px;
  animation: fadeInUp 0.8s ease-out forwards;
}

h1 {
  font-size: 50px;
  margin: 0 0 15px 0;
  color: var(--primary-color);
  line-height: 1.2;
}

.event-description {
  font-size: 20px;
  color: var(--text-grey);
  line-height: 1.6;
  max-width: 800px;
  margin-top: 0;
}

.header-text-content h1 {
  font-size: 50px;
  margin: 0 0 15px 0;
  color: var(--primary-color);
  line-height: 1.2;
}

.event-description {
  font-size: 20px;
  color: var(--text-grey);
  line-height: 1.6;
  max-width: 600px;
}

.main-logo {
  max-width: 400px;
  width: 100%;
}

.main-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

.why-register-box {
  position: relative;
  background-image: url('../images/background.png');
  background-size: cover;
  background-position: center;
  padding: 20px;
  border-radius: 20px;
  min-height: 795px;
  display: flex;
  flex-direction: column;
  background-color: #ECF1FA;
}

.why-register-content {
  background-color: #f5f9ff;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid var(--accent-blue);
  z-index: 2;
}

.why-register-content h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 25px;
  margin-top: 0;
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 16px;
  color: #000;
}

.check-icon {
  background: var(--accent-blue);
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.form-container {
  background: var(--bg-light-blue);
  padding: 40px;
  border-radius: 20px;
}

.form-container h2 {
  color: #000000;
  font-size: 24px;
  margin-bottom: 10px;
  margin-top: 0;
}

.form-description {
  font-size: 18px;
  color: var(--text-grey);
  margin-top: 0;
  margin-bottom: 25px;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-size: 16px;
  color: var(--label-color);
  font-weight: 500;
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  box-sizing: border-box;
  margin-top: 8px;
  font-size: 15px;
}

.phone-input-container {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding-left: 15px;
  margin-top: 8px;
}

.phone-input {
  border: none;
  margin-top: 0;
}

.flag-icon {
  font-size: 14px;
  color: #64748b;
  margin-right: 10px;
}

.form-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 35px 0;
}

.form-section h3 {
  font-size: 18px;
  color: var(--label-color);
  margin-bottom: 15px;
  margin-top: 5px;
}

.role-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.custom-radio input {
  display: none;
}

.custom-radio span {
  display: block;
  padding: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  color: var(--label-color);
  font-size: 14px;
  transition: 0.3s;
}

.custom-radio input:checked + span {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

.dropdown-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234C96F1'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 15px;
}

.loc-card input {
  display: none;
}

.loc-content {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.calendar-icon {
  font-size: 20px;
  margin-right: 12px;
}

.loc-text strong {
  display: block;
  font-size: 15px;
  color: var(--label-color);
}

.loc-text span {
  font-size: 13px;
  color: var(--text-grey);
}

.loc-card input:checked + .loc-content {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue);
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn-submit-modern {
  flex: 3;
  background: linear-gradient(90deg, #1a2e5a 0%, #4c96f1 100%);
  color: #fff;
  padding: 16px;
  border: none;
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
}

.btn-reset-modern {
  flex: 1;
  background: #fff;
  color: #64748b;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
}

.required {
  color: #e74c3c;
  margin-left: 2px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #2B2A29;
  margin-top: 10px;
  margin-bottom: 20px;
  display: block;
}

.form-section h3 {
  font-size: 24px;
  font-weight: 700;
  color: #2B2A29;
  margin-bottom: 10px;
  padding-top: 20px;
}

.phone-input-container {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 15px;
  margin-top: 8px;
  height: 48px;
}

.flag-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-flag-img {
  width: 24px;
  height: auto;
  border-radius: 2px;
}

.country-code {
  font-size: 15px;
  color: #2B2A29;
  font-weight: 500;
  white-space: nowrap;
}

.vertical-line {
  width: 1px;
  height: 24px;
  background-color: #dce4ec;
  margin: 0 15px;
}

.phone-input {
  border: none !important;
  margin-top: 0 !important;
  padding: 0 !important;
  height: 100%;
  flex: 1;
  font-size: 15px;
}

.phone-input:focus {
  outline: none;
}

.role-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.custom-radio {
  cursor: pointer;
  display: flex;
}

.custom-radio input {
  display: none;
}

.subject-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.custom-radio input:checked + span {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

.custom-radio span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 15px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #000000;
  width: 100%;
  min-height: 54px;
  transition: 0.3s;
  line-height: 1.2;
}

.subject-options-grid .custom-radio span,
.role-options-grid .custom-radio span {
  min-height: 40px;
  padding: 6px 10px;
  font-size: 13px;
}

.custom-multiselect {
  position: relative;
  width: 100%;
  padding-top: 6px;
}

.select-box {
  width: 100%;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  font-size: 15px;
  color: var(--text-grey);
}

.select-box .arrow {
  border: solid var(--accent-blue);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
}

.checkboxes-container {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  width: 100%;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  margin-top: 5px;
  max-height: 220px;
  overflow-y: auto;
}

.checkbox-option {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
  color: #000;
  transition: background 0.2s;
}

.checkbox-option:hover {
  background-color: var(--bg-light-blue);
}

.checkbox-option input {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.event-header {
  animation: fadeInUp 0.8s ease-out forwards;
}

.left-column {
  animation: fadeInLeft 0.8s ease-out 0.2s backwards;
}

.right-column {
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.form-input, .phone-input-container {
  transition: all 0.3s ease;
}

.form-input:focus, .phone-input-container:focus-within {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 4px rgba(76, 150, 241, 0.1);
  transform: translateY(-1px);
}

.benefits-list li:hover .check-icon {
  transform: rotate(360deg);
  transition: transform 0.5s ease;
}

.btn-submit-modern {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-submit-modern:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(26, 46, 90, 0.2);
  filter: brightness(1.1);
}

.btn-submit-modern:active {
  transform: scale(0.98);
}

.loc-content {
  transition: all 0.2s ease;
}

.loc-content:hover {
  border-color: var(--accent-blue);
  background: #fff;
  transform: translateY(-2px);
}

.blob {
  transition: all 0.5s ease;
}

.blob-top-right {
  animation: pulse 6s infinite ease-in-out;
}

.calendar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.loc-calendar-img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.loc-content:hover .loc-calendar-img {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

@media (max-width: 600px) {
  .role-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .main-content-grid {
    grid-template-columns: 1fr;
  }
  .event-header {
    flex-direction: column-reverse; 
    text-align: center;
    gap: 20px;
  }
  .header-logo {
    margin-bottom: 20px;
  }

  .main-logo {
    max-width: 200px;
  }
  h1 {
    font-size: 36px;
  }
  .location-grid {
    grid-template-columns: 1fr;
  }
  .role-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .subject-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-register-box {
    position: relative;
    background-image: none;
    background-size: cover;
    background-position: center;
    padding: 20px;
    border-radius: 20px;
    min-height: auto !important;
    display: flex;
    flex-direction: column;
    background-color: #ECF1FA;
    padding: 15px 15px 0 15px; 
    margin-bottom: 20px;
  }

.geometric-shape {
    display: none;
  }

  .why-register-content {
    margin-top: 10px;
    margin-bottom: 30px;
  }
  .form-actions {
    display: flex;
    flex-direction: column !important;
    gap: 12px;
    margin-top: 20px;
    padding-bottom: 20px;
  }

  .btn-submit-modern, 
  .btn-reset-modern {
    width: 100% !important;
    flex: none !important;
    height: 55px;
    display: block;
  }

  .main-content-grid {
    display: block;
  }

  .container {
    padding-bottom: 80px;
  }
}