@import url('https://fonts.googleapis.com/css2?family=Schoolbell&display=swap');

:root {
  --secondary-color: #50e3c2;
  --danger-color: #e74c3c;
  --danger-dark: #c0392b;
  --text-muted: #a8a29e;
  --border-color: #ccc;
  --border-light: #d6d3d1;
  --bg-light: #fafafa;
  --bg-green: #e6f2e6;
  --border-radius-sm: 4px;
  --border-radius-md: 12px;
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

.schoolbell-regular {
  font-family: 'Schoolbell', cursive;
  font-weight: 400;
  font-size: 20px;
  color: var(--text-primary);
}

.banner-container {
  background: var(--bg-green);
  position: fixed;
  top: 0;
  right: 0;
  width: 45%;
  height: 100vh;
  padding: 80px;
}

.form-container {
  width: 55%;
  margin-right: 45%;
  padding: 80px;
}

.go-back {
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.2s ease;
}

.go-back:hover,
.go-back:active {
  transform: scale(0.98);
}

.go-back a {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

.btn-realizar-matricula {
  width: 195px;
  height: 48px;
  font-weight: 500 !important;
  line-height: 1.5;
  font-size: 16px;
}

.btn-primary-custom,
.btn-danger-custom {
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  transition: var(--transition);
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--first-color), var(--secondary-color));
  color: #fff;
  box-shadow: 0 4px 12px rgba(11, 87, 62, 0.3);
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, #094d34, #3cc9aa);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 87, 62, 0.4);
  color: #fff;
}

.btn-danger-custom {
  background: linear-gradient(135deg, var(--danger-color), var(--danger-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-danger-custom:hover {
  background: linear-gradient(135deg, var(--danger-dark), #a93226);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
  color: #fff;
}

.banner-description h4 {
  font-size: 40px;
  font-weight: 600;
  display: inline-block;
  max-width: 420px;
  line-height: 1.25;
}

.banner-description h4 span {
  color: var(--first-color);
}

.banner-description p {
  font-size: 16px;
  font-weight: 400;
  display: inline-block;
  max-width: 460px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.banner-logo img {
  max-width: 400px;
}

.form-content h2 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

.form-content label {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
}

.form-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

.form-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  display: inline-block;
  max-width: 880px;
}

.turno-checkbox {
  display: inline-block;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.turno-checkbox input {
  display: none;
}

.turno-checkbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-md);
  width: 166px;
  height: 128px;
  transition: var(--transition-fast);
  position: relative;
}

.turno-checkbox-circle {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--first-color);
  pointer-events: none;
}

.turno-checkbox input:checked + .turno-checkbox-content .turno-checkbox-circle::after {
  content: '';
  position: absolute;
  top: -6;
  left: -6;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-image: url('/img/checkmark.svg');
  background-size: cover;
  background-position: center;
}

.turno-checkbox input:checked + .turno-checkbox-content {
  border-color: var(--first-color);
}

.turno-checkbox-content img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.turno-checkbox-content span {
  font-size: 14px;
  text-align: center;
}

/* Estilos para turnos esgotados */
.turno-checkbox.turno-esgotado {
  cursor: not-allowed;
}

.turno-checkbox.turno-esgotado .turno-checkbox-content {
  background: #f8f9fa;
  border-color: #dee2e6;
  opacity: 0.6;
}

.turno-checkbox.turno-esgotado .turno-checkbox-content img {
  filter: grayscale(100%);
  opacity: 0.5;
}

.turno-checkbox.turno-esgotado .turno-checkbox-content > span {
  color: #6c757d;
}

.turno-checkbox.turno-esgotado .turno-checkbox-circle {
  border-color: #ced4da;
  background: #e9ecef;
}

.vagas-esgotadas {
  font-size: 11px;
  font-weight: bold;
  color: #dc3545 !important;
  margin-top: 5px;
}

/* Tooltip customizado para turnos esgotados */
.tooltip {
  pointer-events: none;
}

.tooltip .tooltip-inner {
  max-width: 300px;
  padding: 8px 12px;
  background-color: #dc3545;
  border-radius: 6px;
  font-size: 13px;
  text-align: left;
}

.tooltip .tooltip-arrow::before {
  border-top-color: #dc3545 !important;
}
/* Custom Checkbox Base */
.custom-checkbox,
.terms-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input,
.terms-checkbox input {
  display: none;
}

.custom-box {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  position: relative;
  border-radius: var(--border-radius-sm);
}

.custom-checkbox input:checked + .custom-box,
.terms-checkbox input:checked + .custom-box {
  border-color: var(--first-color);
  background-color: #fff;
}

.custom-checkbox input:checked + .custom-box::after,
.terms-checkbox input:checked + .custom-box::after {
  content: url('/img/checkmark.svg');
  position: absolute;
  top: -2px;
  left: -2px;
  width: 22px;
  height: 22px;
}

.custom-checkbox span img {
  width: 24px;
  height: 24px;
  margin-right: 4px;
}

.custom-checkbox.large .custom-box {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
}

.custom-checkbox.large .custom-box::after {
  width: 32px;
  height: 32px;
  top: 4px;
  left: 4px;
}

.custom-checkbox.large .checkbox-content img {
  width: 48px;
  height: 48px;
}

.custom-checkbox span:nth-of-type(2) {
  font-weight: 500 !important;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.custom-checkbox span a {
  color: var(--first-color) !important;
}

.custom-file-upload input[type='file'] {
  display: none;
}

.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 140px;
  border: 2px dashed var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  background-color: var(--bg-light);
}

.upload-box img {
  width: 40px;
  height: 40px;
  opacity: 0.7;
}

.upload-box span {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-muted);
}

.upload-box:hover {
  border-color: var(--first-color);
  background-color: #f0f8ff;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--first-color), var(--secondary-color));
  padding: 30px 20px 30px;
  min-height: 280px;
}
.hero-gradient,
.hero-gradient .container,
.hero-gradient .bg-white {
  overflow: visible !important;
}

#userDropdown + .dropdown-menu {
  min-width: 220px;
  margin-top: 0.5rem !important;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  background: white;
  z-index: 9999 !important;
  position: absolute !important;
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: none;
}

#userDropdown + .dropdown-menu.show {
  display: block !important;
  animation: dropdownFadeIn 0.2s ease-out forwards;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  color: #333;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  transform: translateX(4px);
}

.dropdown-item:active {
  background-color: #e9ecef;
}

.dropdown-item i {
  font-size: 1.1rem;
}

.dropdown-divider {
  margin: 0.5rem 0;
  opacity: 0.3;
}

.dropdown {
  position: relative !important;
  z-index: 1000;
}

.dropdown-menu {
  will-change: transform, opacity;
}

.home-wrapper h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.home-wrapper h4 {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.smooth-scroll {
  transition: var(--transition);
}

.smooth-scroll:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

.cards-section {
  position: relative;
  z-index: 100;
}

.card-hover {
  transition: var(--transition);
  border: none;
  height: 100%;
}

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

.badge-enrollment-open {
  background: linear-gradient(135deg, var(--first-color), var(--secondary-color));
  color: white;
}

.badge-enrollment-closed {
  background: linear-gradient(135deg, var(--danger-color), var(--danger-dark));
  color: white;
}

.documents-list li {
  position: relative;
  padding-left: 30px;
}

.documents-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.documents-list .small-text {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-top: 2px;
}

.feriados-scroll {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}

.feriados-scroll::-webkit-scrollbar {
  width: 6px;
}

.feriados-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.feriados-scroll::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 10px;
}

.feriados strong {
  color: var(--first-color);
  display: inline-block;
  min-width: 70px;
}

.carousel-inner img {
  height: 320px;
  object-fit: cover;
}

footer {
  background-color: var(--first-color);
}

.logo-footer {
  max-height: 40px;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.logo-footer-lg {
  max-height: 80px;
}

.logo-footer:hover {
  opacity: 1;
  transform: scale(1.05);
}

.contact-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-link:hover {
  color: #fff;
  text-decoration: underline;
}

@media (min-width: 1050px) {
  .banner-logo img {
    max-width: 400px;
  }
}

@media (max-width: 1200px) {
  .fs-5 {
    font-size: 1rem;
  }
  .small {
    font-size: 0.75rem;
  }

  .logo-footer {
    max-height: 30px;
  }

  .logo-footer-lg {
    max-height: 70px;
  }
}

@media (max-width: 1300px) {
  .schoolbell-regular {
    font-size: 18px;
  }

  .banner-container,
  .form-container {
    padding: 64px;
  }

  .banner-description h4 {
    font-size: 34px;
  }

  .banner-description p {
    font-size: 14px;
  }
}

@media (max-width: 1045px) {
  .banner-description h4 {
    font-size: 26px;
  }
}

@media (max-width: 867px) {
  .d-flex.vh-100 {
    flex-direction: column;
  }

  .banner-container {
    position: relative;
    width: 100%;
    height: auto;
    order: -1;
  }

  .form-container {
    width: 100% !important;
    margin-right: 0 !important;
  }

  .banner-container,
  .form-container {
    padding: 36px;
  }

  .form-title {
    font-size: 20px !important;
  }

  .form-description,
  .banner-description h4,
  .banner-description p {
    max-width: none !important;
    width: 100% !important;
  }

  .form-description {
    font-size: 14px !important;
  }

  .banner-logo img {
    display: none;
  }
}

@media (max-width: 768px) {
  .home-wrapper h1 {
    font-size: 2rem;
  }

  .home-wrapper h4 {
    font-size: 1.2rem;
  }

  .hero-gradient {
    padding: 30px 20px 30px;
    min-height: 220px;
  }

  .feriados strong {
    min-width: 50px;
    font-size: 0.9rem;
  }
}

@media (max-width: 767px) {
  .btn-realizar-matricula {
    width: 100% !important;
  }

  .custom-checkbox span:nth-of-type(2) {
    font-size: 13px !important;
  }
}

@media (max-width: 576px) {
  .dias-semana {
    flex-direction: column !important;
  }

  .dias-semana .custom-checkbox {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .home-wrapper h1 {
    font-size: 1.5rem;
  }

  .home-wrapper h4 {
    font-size: 1rem;
  }

  .logo-footer {
    max-height: 25px;
  }

  .logo-footer-lg {
    max-height: 50px;
  }

  .btn-primary-custom,
  .btn-danger-custom {
    font-size: 1rem;
  }
}

/* Força a aparência cinza para campos readonly */
.form-control[readonly] {
  background-color: #e9ecef; /* Cinza padrão de campos desativados */
  opacity: 1; /* Garante que a cor fique sólida */
  color: #495057; /* Mantém o texto legível */
  cursor: not-allowed; /* (Opcional) Mostra o ícone de bloqueio ao passar o mouse */
}
