/* Import Work Sans Font */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;600;700&display=swap');

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

body { 
  font-family: 'Work Sans', sans-serif;
  margin: 0;
  padding: 0;
}

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

/* Banner Container */
.banner-container {
  width: 100%;
  height: 420px;
  background-image: url('../media/bck2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  margin-bottom: 40px;
}

/* Header Content Layout */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
}

.header-logo-left {
  text-align: left;
}

.header-logo-rigth {
  text-align: right;
}

.header-logo-rigth img, .header-logo-left img {
  max-height: 380px;
  width: auto;
  object-fit: contain;
}

/* Mobile Header - Hidden by default */
.header-content-mobile {
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.header-logo-center {
  text-align: center;
}

.header-logo-center img {
  max-height: 300px;
  width: auto;
  object-fit: contain;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.logo-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

.header-logo {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

.header-logo.logos {
  max-height: 60px;
}

.header-logo.tipo {
  max-height: 100px;
}

.header-info {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.congresso-logo {
  max-height: 120px;
  width: auto;
  object-fit: contain;
}

.header-title {
  font-size: 48pt;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin: 0;
  text-transform: uppercase;
}

.header-subtitle {
  font-size: 24pt;
  font-weight: 600;
  color: #666;
  margin: 0;
  letter-spacing: 0.1em;
}

/* Typography Settings - Centralized */
h1 {
  font-size: 59pt;
  font-weight: 400;
  letter-spacing: -0.08em;
}

h2 {
  font-size: 34pt;
  font-weight: 400;
  letter-spacing: -0.08em;
}

h3 {
  font-size: 20pt;
  font-weight: 400;
}

h4 {
  font-size: 16pt;
  font-weight: 700;
}

p {
  font-size: 12pt;
  font-weight: 400;
  letter-spacing: 0.06em;
}

li, input, textarea {
  font-size: 20pt;
  font-weight: 400;
  letter-spacing: 0.06em;
}

span {
  font-size: 16pt;
}

label {
  font-size: 17pt;
  font-weight: 600;
  letter-spacing: 0.06em;
}

strong {
  font-weight: 700;
}

/* Links and Buttons */
a {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

a:hover {
  opacity: 0.7;
}

button {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font-weight: 400;
  cursor: pointer;
  text-decoration: underline;
  font-size: 16pt;
}

button:hover {
  opacity: 0.7;
}

.introduction {
  margin-bottom: 80px;
}

.introduction h1 {
  margin-bottom: 40px;
}

.introduction p {
  font-size: 30pt;
  font-weight: 700;
  line-height: 36pt;
  margin-bottom: 40px;
}

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

.courses-section h2 {
  margin-bottom: 10pt;
  font-size: 36pt;
}

#inscricao {
  margin-top: 80px;
}

#inscricao h2 {
  font-size: 36pt;
}

#selectedCoursesDisplay {
  margin-bottom: 30px;
}

#selectedCoursesList h4 {
  font-size: 16pt;
  font-weight: 700;
}

#selectedCoursesList p {
  font-size: 16pt;
  line-height: 1.4;
}

.warning-box {
  background: #fff3cd;
  padding: 4px;
  margin: 30px 0;
  font-size: 12pt;
  font-weight: 600;
}

.total-amount {
  margin-top: 10px;
  font-size: 12pt;
  font-weight: 700;
}


.course-wrapper {
  border-bottom: 1px solid #000;
}

.course-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.course-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.course-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.course-item label {
  cursor: pointer;
  margin: 0;
}

.ver-mais-link {
  text-decoration: underline;
  white-space: nowrap;
  font-size: 12pt;
  opacity: 0;
  transition: opacity 0.2s;
}

.course-item:hover .ver-mais-link {
  opacity: 1;
}

.course-details {
  display: none;
  padding: 20px 0 30px 0;
  animation: slideDown 0.3s ease-out;
}

.course-details.expanded {
  display: block;
}

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

.course-details h4 {
  margin-top: 25px;
  margin-bottom: 8px;
}

.course-details h4:first-child {
  margin-top: 0;
}

.course-details > h4:last-of-type {
  margin-top: 25px;
}

.course-details p {
  margin-bottom: 15px;
  line-height: 1.5;
}

.course-details p br {
  display: block;
  content: "";
  margin-top: 3px;
}

.course-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reservar-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-text {
  color: #28a745;
  font-weight: 700;
  font-size: 16pt;
}

.reservar-btn {
  color: #0066cc;
  text-decoration: underline;
  font-size: 16pt;
  transition: color 0.2s;
}

.reservar-btn.reserved {
  color: #dc3545;
}

.fechar-btn {
  text-decoration: none;
  font-size: 16pt;
  text-transform: uppercase;
}


.registration-form {
  margin: 40px 0;
}

.registration-form h3 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 16pt;
  font-weight: 700;
}

.registration-form h3:first-child {
  margin-top: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-group label {
  margin-bottom: 8px;
  display: block;
  font-size: 12pt;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 0;
  font-size: 12pt;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #0066cc;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

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

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 20px 0;
}

.payment-option {
  cursor: pointer;
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-card {
  text-align: center;
  padding: 20px;
  border: 2px solid #ccc;
  transition: all 0.2s;
}

.payment-option input[type="radio"]:checked + .payment-card {
  border-color: #0066cc;
  background-color: rgba(0, 102, 204, 0.05);
}

.payment-icon {
  font-size: 44px;
  margin-bottom: 10px;
}

.payment-name {
  font-size: 12pt;
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
}

.payment-desc {
  font-size: 12pt;
  color: #666;
}

.terms-section {
  margin: 40px 0;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.terms-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.terms-checkbox label {
  font-size: 12pt;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
}

.form-actions {
  margin-top: 30px;
  text-align: center;
}

.submit-btn {
  font-size: 16pt;
  font-weight: 700;
  text-decoration: underline;
  color: #0066cc;
}

#status {
  margin: 20px 0;
  padding: 15px;
  border-radius: 4px;
}

.message {
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.course-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 20px 0;
}

.info-item h4 {
  margin: 0 0 5px 0;
}

.info-item p {
  margin: 0;
  line-height: 1.4;
}

/* Contact Section */
.contact-section {
  width: 100%;
  height: 300px;
  background-image: url('../media/footer.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /*display: flex;*/
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 40px;
}

.contact-content {
  text-align: left;
  color: #000;
  z-index: 2;
  position: relative;
  max-width: 1024px;
  margin: 0 auto;
  /*padding: 0 40px;*/
}

.contact-content h2 {
  font-size: 36pt;
  font-weight: 500;
  margin: 0 0 30px 0;
  color: #000;
  padding-top: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-email, .contact-phone {
  font-size: 18pt;
  font-weight: 500;
  color: #000;
  margin: 0;
  text-transform: uppercase;
}

.contact-email {
  color: #000;
}

.contact-phone {
  color: #000;
}

footer {
  margin-top: 20px;
  text-align: center;
  font-size: 11pt;
  text-transform: uppercase;
  color: #000;
}

/* Responsive Header Layout */
@media (max-width: 1024px) {
  .body-container {
    margin: 0 20px;
  }
  
  .header-content {
    padding: 0 20px;
  }
  
  .header-logo-rigth img, .header-logo-left img {
    max-height: 320px;
  }
}

@media (max-width: 700px) {
  .introduction h1 {
    margin-bottom: 40px;
    font-size: 45pt;
}

  .banner-container {
    height: 350px;
  }
  
  /* Hide desktop header, show mobile header */
  .header-content {
    display: none;
  }
  
  .header-content-mobile {
    display: flex;
  }
  
  .header-logo-center img {
    max-height: 250px;
  }
  
  .contact-section {
    height: 250px;
  }
  
  .contact-content {
    padding: 0 20px;
  }
  
  .contact-content h2 {
    font-size: 28pt;
    font-weight: 500;
    margin-bottom: 20px;
  }
  
  .contact-email, .contact-phone {
    font-size: 16pt;
    font-weight: 500;
    padding-left: 10px;
  }
  
  .course-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .banner-container {
    height: 300px;
  }
  
  .header-logo-center img {
    max-height: 200px;
  }
  
  .contact-section {
    height: 200px;
    padding: 30px 0;
  }
  
  .contact-content {
    padding: 0 15px;
  }
  
  .contact-content h2 {
    font-size: 24pt;
    font-weight: 500;
    margin-bottom: 15px;
  }
  
  .contact-email, .contact-phone {
    font-size: 14pt;
    font-weight: 500;
  }
  
  .course-info-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    padding: 30px 20px;
    max-height: 90vh;
  }
  
  .course-item {
    grid-template-columns: auto 1fr;
    gap: 10px;
  }
  
  .ver-mais-link {
    grid-column: 2;
    text-align: right;
    margin-top: 5px;
    opacity: 1;
  }
  
  .course-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .payment-methods {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Formador Modal */
.formador-link {
  text-decoration: underline;
  cursor: pointer;
  font-weight: 400;
  color: inherit;
}

.formador-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.formador-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  width: 600px;
  max-width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 34pt;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  text-decoration: none;
}

.modal-close:hover {
  opacity: 0.7;
}

.modal-content h4 {
  margin-top: 0;
  margin-bottom: 20px;
}

.modal-content p {
  line-height: 1.6;
}

.course-details strong {
  font-size: 12pt;
}
