/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #cdd6e4 0%, #8e2de2 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

em {
  margin-right: 10px;
}

/* Main container */
.conference-form {
  padding: 1rem 8%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 0;
}
.conference-form--wide-mob {
  padding: 1rem 10px;
}

.conference-form__container {
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.conference-form__logo2-container {
  max-width: 800px;
  margin-top: 1.5rem;
}

/* Header styles */
.conference-form__header {
  text-align: center;
}

.header-tile {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem 1.5rem;
  text-align: center;
}

.conference-form__logo {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.conference-form__logo2 {
  margin-left: 0%;
  max-width: 101.9%;
  vertical-align: bottom;
}
.conference-form__logo--wider {
  max-width: 108.5%;
}

.conference-form__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: #1a1a1a;
}

.conference-form__subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 45px;
}

/* Event details section */
.conference-form__info {
  width: 100%;
}

.info-tile {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem 1.5rem;
}

.event-details__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  text-align: center;
}

.event-details__content {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.event-details__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 15px;
}

.event-details__label {
  color: #4285f4;
  font-weight: 600;
  font-size: 0.9rem;
}

.event-details__value {
  color: #1a1a1a;
  font-size: 0.9rem;
  line-height: 1.4;
}

.event-details__description {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #4285f4;
}

.event-details__description p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.event-details__description p:last-child {
  margin-bottom: 0;
}

.event-details__free {
  background: #e8f5e8;
  padding: 1rem;
  border-radius: 6px;
  color: #2e7d32 !important;
  border: 1px solid #c8e6c9;
}

/* Registration form section */
.conference-form__registration {
  width: 100%;
}

.registration-tile {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem 1.5rem;
}

.registration-form__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Form group styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group--fieldset {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  background: #f8f9fa;
}

.form-group--fieldset .form-group__legend {
  padding: 0 0.5rem;
  background: #f8f9fa;
  margin-left: -0.5rem;
}

/* Hidden accessibility details */
.accessibility-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0;
}

.accessibility-details--visible {
  max-height: 200px;
  opacity: 1;
  padding-top: 1rem;
}

.form-group__label,
.form-group__legend {
  display: block;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group__legend {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-weight: 500;
}

.form-group__input,
.form-group__textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.form-group__input:focus,
.form-group__textarea:focus {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.form-group__input--error,
.form-group__textarea--error {
  border-color: #dc3545;
}

.form-group__input--error:focus,
.form-group__textarea--error:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group__input--warning,
.form-group__textarea--warning {
  border-color: #ffc107;
}

.form-group__input--warning:focus,
.form-group__textarea--warning:focus {
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.form-group__input--success,
.form-group__textarea--success {
  border-color: #28a745;
}

.form-group__input--success:focus,
.form-group__textarea--success:focus {
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-group__textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group__error {
  display: block;
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  min-height: 1rem;
  transition: color 0.2s ease;
}

.form-group__error--warning {
  color: #856404;
}

/* Checkbox styles */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.checkbox-group:last-child {
  margin-bottom: 0;
}

.checkbox-group--required {
  margin-bottom: 1rem;
}

.checkbox-group__input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #4285f4;
  margin-top: 0.1rem;
}

.checkbox-group__label {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #1a1a1a;
  cursor: pointer;
}

/* GDPR section */
.privacy-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 1;
}

.privacy-section__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.privacy-section__content {
  margin-bottom: 1.5rem;
}

.privacy-section__item {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.privacy-section__item:last-child {
  margin-bottom: 0;
}

.privacy-section__number {
  color: #4285f4;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.privacy-section__item p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #2c2c2c;
}

.privacy-section__list {
  margin: 0.5rem 0 0 0;
  padding-left: 1rem;
}

.privacy-section__list li {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #2c2c2c;
  margin-bottom: 0.5rem;
  margin-left: 10px;
}

.privacy-section__list li:last-child {
  margin-bottom: 0;
}

/* Submit button */
.registration-form__submit {
  width: 100%;
  background: linear-gradient(135deg, #4285f4 0%, #8e2de2 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 1rem;
}

.registration-form__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
}

.registration-form__submit:active:not(:disabled) {
  transform: translateY(0);
}

.registration-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success message */
.success-message {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  border: 1px solid #c3e6cb;
  display: none;
  animation: slideIn 0.3s ease;
}

.success-message--visible {
  display: block;
}

/* Error message */
.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  border: 1px solid #f5c6cb;
  display: none;
  animation: slideIn 0.3s ease;
}

.error-message--visible {
  display: block;
}

/* Validation summary */
.validation-summary {
  background: #fff3cd;
  color: #856404;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  border: 1px solid #ffeaa7;
  display: none;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (min-width: 768px) {
  .conference-form {
    padding: 2rem 8%;
  }

  .conference-form__container {
    gap: 2rem;
  }

  .header-tile,
  .info-tile,
  .registration-tile {
    border-radius: 20px;
    padding: 3rem 2rem;
  }

  .conference-form__title {
    font-size: 2rem;
  }

  .conference-form__subtitle {
    font-size: 1.1rem;
  }

  .event-details__content {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-details__item:nth-child(3),
  .event-details__item:nth-child(4) {
    grid-column: 1 / -1;
  }

  .event-details__item {
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
  }

  .event-details__label {
    min-width: 155px;
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .conference-form__container,
  .conference-form__logo2-container {
    max-width: 900px;
  }
}

/* Print styles */
@media print {
  .conference-form {
    background: white;
    padding: 0;
  }

  .header-tile,
  .info-tile,
  .registration-tile {
    box-shadow: none;
    border-radius: 0;
    border: 1px solid #ddd;
  }

  .registration-form__submit {
    display: none;
  }
}

/* Focus visible for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  .form-group__input:focus-visible,
  .form-group__textarea:focus-visible,
  .checkbox-group__input:focus-visible,
  .registration-form__submit:focus-visible {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .header-tile,
  .info-tile,
  .registration-tile {
    border: 2px solid #000;
  }

  .form-group__input,
  .form-group__textarea {
    border-width: 2px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #1a237e 0%, #4a148c 100%);
  }
}

/* Location cards styles */
.conference-form__locations {
  width: 100%;
}

.locations__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.locations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.location-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.location-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
  min-height: 80px;
}

.location-card__details {
  margin-bottom: 1.5rem;
  text-align: left;
  min-height: 200px;
}

.location-card__details p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
  color: #333;
}

.location-card__details p:last-child {
  margin-bottom: 0;
}

.location-card__button {
  display: inline-block;
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  color: white;
  text-decoration: none;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(142, 45, 226, 0.3);
}

.location-card__button:hover {
  background: linear-gradient(135deg, #4a00e0, #8e2de2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142, 45, 226, 0.4);
}

.location-card__button--wide {
  display: block;
  margin: 0 auto;
  text-align: center;
}

/* Mobile responsiveness for location cards */
@media (max-width: 768px) {
  .locations__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .locations__title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .location-card {
    padding: 1.5rem;
  }

  .location-card__title {
    font-size: 1.25rem;
  }
  .location-card__title,
  .location-card__details {
    min-height: auto;
  }
}

/* Program accordion styles */
.program-toggle {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  margin: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(142, 45, 226, 0.3);
}

.program-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142, 45, 226, 0.4);
}

.program-toggle:active {
  transform: translateY(0);
}

.program-toggle__icon {
  transition: transform 0.3s ease;
  font-size: 0.875rem;
}

.program-toggle[aria-expanded="true"] .program-toggle__icon {
  transform: rotate(180deg);
}

.program-content {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
  max-height: 5000px;
  opacity: 1;
  transform: scaleY(1);
  transform-origin: top;
  transition: max-height 0.5s ease, opacity 0.3s ease, transform 0.3s ease,
    padding 0.3s ease;
}

.program-content[hidden] {
  max-height: 0;
  opacity: 0;
  transform: scaleY(0);
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.program-content h3 {
  color: #8e2de2;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  border-bottom: 2px solid #8e2de2;
  padding-bottom: 0.5rem;
}

.program-content h4 {
  color: #4a00e0;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.program-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.program-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.program-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .program-toggle {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }

  .program-content {
    padding: 1rem;
  }

  .program-content h3 {
    font-size: 1.25rem;
  }

  .program-content h4 {
    font-size: 1.1rem;
  }
}
