﻿body#agenda {
  background: #0F172A;
  color: #CBD5E1;
}

.agenda-section {
  padding: 88px 24px;
  background: #0F172A;
}

.agenda-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.agenda-header h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  color: #FFFFFF;
}

.agenda-header p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #CBD5E1;
}

.agenda-block,
.agenda-panel,
.agenda-calendar,
.agenda-form,
.agenda-confirm {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.agenda-block h2,
.agenda-panel h2,
.agenda-calendar h2,
.agenda-form h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #1F7A5C;
}

.agenda-lead {
  margin: 0 0 8px;
  color: #1F7A5C;
}

.agenda-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
  color: #CBD5E1;
}

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.agenda-calendar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.agenda-calendar-head p {
  margin: 0;
  color: #CBD5E1;
}

.agenda-meta p {
  margin: 0 0 6px;
  font-size: 14px;
  color: #CBD5E1;
}

.agenda-note {
  font-size: 13px;
  color: #94A3B8;
  margin: 8px 0 0;
}

.agenda-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.agenda-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agenda-phone-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.agenda-field span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1F7A5C;
}

.agenda-field input,
.agenda-field textarea,
.agenda-field select {
  border: 1px solid #1E293B;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #0B1324;
  color: #CBD5E1;
  width: 100%;
  box-sizing: border-box;
}

.agenda-country-select {
  min-width: 110px;
}

.agenda-phone-input {
  flex: 1;
}

.agenda-field textarea {
  min-height: 110px;
  resize: vertical;
}

.agenda-field--full {
  grid-column: 1 / -1;
}

.agenda-field-note {
  margin: 0;
  font-size: 13px;
  color: #94A3B8;
}

.agenda-confirm p {
  margin: 0 0 10px;
  color: #94A3B8;
}

.agenda-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  background: #22C55E;
  color: #0F172A;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 700px) {
  .agenda-section {
    padding: 64px 18px;
  }
}

.iti {
  width: 100%;
}

.iti__flag-container {
  padding-left: 0;
}

.iti--separate-dial-code .iti__selected-flag {
  background: transparent;
}

/* Keep intl-tel-input inside the input border */
.agenda-field .iti {
  border: 1px solid #1E293B;
  border-radius: 12px;
  background: #0B1324;
  box-sizing: border-box;
  display: block;
}

.agenda-field .iti input {
  border: none;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px 12px 74px;
  color: #CBD5E1;
}

.agenda-field .iti__selected-flag {
  border-right: 1px solid #1E293B;
  padding: 0 10px;
  border-radius: 12px 0 0 12px;
  margin: 0;
}

.iti__country-list {
  background: #111827;
  color: #CBD5E1;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.iti__country:hover {
  background: #1F2937;
}

.iti__divider {
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

/* ============================= */
/* Agenda – lista expansível */
/* ============================= */

.agenda-expand {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.agenda-item {
  position: relative;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  cursor: default;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.agenda-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.agenda-title {
  display: block;
  font-weight: 800;
  color: #FFFFFF;
}

.agenda-desc {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}

.agenda-item:hover .agenda-desc {
  max-height: 120px;
  opacity: 1;
}

@media (max-width: 768px) {
  .agenda-desc {
    max-height: none;
    opacity: 1;
  }
}


/* Agenda hover expand */
.agenda-expand-list{
  margin-top: 16px;
}

.agenda-expand-item{
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft, rgba(148,163,184,.15));
}

.agenda-expand-title{
  display: block;
  font-weight: 600;
  color: inherit;
}

.agenda-expand-desc{
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all .25s ease;
  color: inherit;
  margin-top: 6px;
}

.agenda-expand-item:hover .agenda-expand-desc{
  max-height: 120px;
  opacity: 1;
}

.iti__selected-dial-code{
  color: #ffffff;
}

/* ============================= */
/* Agenda responsive refinements */
/* ============================= */
@media (max-width: 900px) {
  .agenda-grid {
    grid-template-columns: 1fr;
  }

  .agenda-calendar-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .agenda-section {
    padding: 64px 16px;
  }

  .agenda-block,
  .agenda-panel,
  .agenda-calendar,
  .agenda-form,
  .agenda-confirm {
    padding: 18px;
    border-radius: 18px;
  }

  .agenda-form-grid {
    grid-template-columns: 1fr;
  }

  .agenda-primary-btn {
    width: 100%;
    justify-content: center;
  }
}
