/* ===== FORMS PAGE RESPONSIVE STYLES ===== */
body {
    background-color: #d3d6da;
}

/* ===== MODAL STYLES ===== */
.modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-body {
  padding: 2.5rem 2rem;
}

#modalIcon {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
}

#modalTitle {
  font-weight: 700;
  color: #05386b;
  font-size: 1.5rem;
}

#modalContent {
  text-align: center;
  color: #1f2937;
  line-height: 1.6;
}

#modalContent p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

#modalContent p:last-child {
  margin-bottom: 0;
}

.modal-footer {
  border-top: none;
  padding: 0 2rem 1.5rem 2rem;
}

.modal-footer .btn-primary {
  background: linear-gradient(90deg, #0b4fa1, #05386b);
  border: none;
  border-radius: 8px;
  padding: 0.6rem 2rem;
  font-weight: 600;
}

.modal-footer .btn-primary:hover {
  background: linear-gradient(90deg, #05386b, #0b4fa1);
}

@media (max-width: 576px) {
  .modal-body {
    padding: 1.5rem 1.25rem;
  }

  #modalTitle {
    font-size: 1.3rem;
  }

  #modalContent {
    font-size: 0.9rem;
  }

  .modal-footer {
    padding: 0 1.25rem 1rem 1.25rem;
  }

  .modal-footer .btn-primary {
    width: 100%;
  }
}

/* Override animation opacity from stilo.css */
.contratar,
.forms-wrapper,
.forms-wrapper * {
  opacity: 1 !important;
  transform: none !important;
}

/* Hero section styles */
.contratar {
  padding: 4rem 2rem 2rem;
  background: linear-gradient(135deg, #d3d6da 0%, #d3d6da 100%);
  text-align: center;
  margin-bottom: 2rem;
}

.contratar-center {
  max-width: 800px;
  margin: 0 auto;
}

.contratar-title {
  font-size: 2.2rem;
  color: #05386b;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contratar p {
  font-size: 1.1rem;
  color: #1f2937;
  margin: 0;
}

/* ===== DESKTOP (1024px+) ===== */
.forms-wrapper {
  background: #d3d6da;
  padding: 2rem 1rem;
  margin: 0;
}

.box-white {
  background: #fff;
  padding: 3rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
}

.box-white h2 {
  color: #05386b;
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

form label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: block;
  color: #1f2937;
  font-size: 1rem;
}

form input,
form select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  font-family: "Poppins", sans-serif;
}

form input:focus,
form select:focus {
  outline: none;
  border-color: #0b4fa1;
  box-shadow: 0 0 0 2px rgba(11, 79, 161, 0.15);
}

.enviar {
  background: linear-gradient(90deg, #0b4fa1, #05386b);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  transition: all 0.25s ease-in-out;
  width: 100%;
  font-size: 1rem;
}

.enviar:hover {
  background: linear-gradient(90deg, #05386b, #0b4fa1);
  color: #fff;
  transform: scale(1.03);
}

.dados-pagamento {
  line-height: 2;
  font-size: 1rem;
}

.copy-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.copy-icon {
  font-size: 1rem;
  color: #0b4fa1;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.copy-icon:hover {
  color: #05386b;
  transform: scale(1.1);
}

.info-servico {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #05386b;
  display: none;
  text-align: right;
}

/* ===== TABLET (768px - 1023px) ===== */
@media (max-width: 768px) {
  .contratar {
    padding: 3rem 1rem 1.5rem;
  }

  .contratar-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .contratar p {
    font-size: 1rem;
  }

  .forms-wrapper {
    padding: 1.5rem 0.75rem;
    gap: 1.5rem;
  }

  .box-white {
    padding: 2rem 1.5rem;
  }

  .col-md-6:first-child .box-white {
    margin-bottom: 0.5rem;
  }

  .box-white h2 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  form label {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  form input,
  form select {
    padding: 0.6rem 0.7rem;
    font-size: 0.9rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .enviar {
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
  }

  .dados-pagamento {
    line-height: 1.8;
    font-size: 0.95rem;
  }
}

/* ===== MOBILE (576px - 767px) ===== */
@media (max-width: 576px) {
  .contratar {
    padding: 2rem 0.75rem 1rem;
  }

  .contratar-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .contratar p {
    font-size: 0.9rem;
  }

  .forms-wrapper {
    padding: 1rem 0.5rem;
    background: #f5f5f5;
    gap: 1rem;
  }

  .box-white {
    padding: 1.5rem 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.05);
  }

  .col-md-6:first-child .box-white {
    margin-bottom: 0.5rem;
  }

  .box-white h2 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
  }

  .form-group {
    margin-bottom: 0.9rem;
  }

  form label {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
  }

  form input,
  form select {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.85rem;
    line-height: 1.4;
  }

  form input:focus,
  form select:focus {
    outline: none;
    border-color: #0b4fa1;
    box-shadow: 0 0 0 2px rgba(11, 79, 161, 0.1);
  }

  .enviar {
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
  }

  .enviar:active {
    transform: scale(0.98);
  }

  .dados-pagamento {
    line-height: 1.6;
    font-size: 0.9rem;
    word-break: break-word;
  }

  .copy-text {
    gap: 4px;
  }

  .copy-icon {
    font-size: 0.9rem;
  }

  .info-servico {
    font-size: 0.8rem;
    margin-top: 0.3rem;
  }

  #loading {
    font-size: 0.85rem;
    margin-top: 0.75rem;
  }

  .msg {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.8rem;
  }
}

/* ===== SMALL MOBILE (< 480px) ===== */
@media (max-width: 480px) {
  .contratar {
    padding: 1.5rem 0.5rem 0.75rem;
  }

  .contratar-title {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
  }

  .contratar p {
    font-size: 0.85rem;
  }

  .forms-wrapper {
    padding: 0.75rem 0.5rem;
    gap: 0.8rem;
  }

  .box-white {
    padding: 1.2rem 0.8rem;
    border-radius: 8px;
  }

  .col-md-6:first-child .box-white {
    margin-bottom: 0.4rem;
  }

  .box-white h2 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
  }

  .form-group {
    margin-bottom: 0.8rem;
  }

  form label {
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
  }

  form input,
  form select {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 6px;
  }

  .enviar {
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
  }

  .dados-pagamento {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .info-servico {
    font-size: 0.75rem;
  }

  #loading {
    font-size: 0.8rem;
  }

  .msg {
    font-size: 0.8rem;
    padding: 0.5rem 0.7rem;
    margin-bottom: 0.7rem;
  }
}
