*,
*::before,
*::after {
  box-sizing: border-box;
}

[data-lucide],
svg.lucide {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

:root {
  --doe: #DA5F21;
  --doe-dark: #C2410C;
  --doe-light: #FFF7ED;
  --renew: #059669;
  --renew-dark: #047857;
  --header: #003148;
  --gold: #C2AF7D;
  --page: #F3F4F6;
  --card-border: #E5E7EB;
  --card-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px rgb(0 0 0 / 0.08);
}

.bg-doe {
  background-color: var(--doe) !important;
}

.bg-doe-dark {
  background-color: var(--doe-dark) !important;
}

.bg-doe-light {
  background-color: var(--doe-light) !important;
}

.text-doe {
  color: var(--doe) !important;
}

.text-doe-dark,
.hover\:text-doe-dark:hover {
  color: var(--doe-dark) !important;
}

.border-doe {
  border-color: var(--doe) !important;
}

.border-doe\/20 {
  border-color: rgba(218, 95, 33, 0.2) !important;
}

.border-doe\/30 {
  border-color: rgba(218, 95, 33, 0.3) !important;
}

.focus\:ring-doe:focus {
  --tw-ring-color: var(--doe);
  box-shadow: 0 0 0 2px var(--doe) !important;
}

a#submitBtn,
a#returnBtn,
a#getBol,
#pix-copy-btn,
button.card-submit-btn,
button.bg-doe,
a.bg-doe {
  background-color: var(--doe) !important;
  color: #fff !important;
  text-decoration: none;
}

a#submitBtn:hover,
a#returnBtn:hover,
a#getBol:hover,
#pix-copy-btn:hover,
button.card-submit-btn:hover,
button.bg-doe:hover,
a.bg-doe:hover,
.hover\:bg-doe-dark:hover {
  background-color: var(--doe-dark) !important;
  color: #fff !important;
}

a#btnRenovar {
  background-color: var(--renew) !important;
  color: #fff !important;
  text-decoration: none;
}

a#btnRenovar:hover {
  background-color: var(--renew-dark) !important;
  color: #fff !important;
}

html {
  font-size: 16px;
}

@media (min-width: 768px) {
  html {
    font-size: 17.5px;
  }
}

@media (min-width: 1024px) {
  html {
    font-size: 18.5px;
  }
}

@media (min-width: 1280px) {
  html {
    font-size: 19px;
  }
}

body {
  font-family: 'Roboto', sans-serif;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  background-color: var(--page);
}

.bg-white.rounded-2xl,
.bg-white.rounded-xl {
  background-color: #fff;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
}

.ofertas-shell {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.ofertas-funds-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem 1.25rem;
}

@media (min-width: 640px) {
  .ofertas-funds-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ofertas-funds-grid {
    gap: 1.35rem 1.75rem;
  }
}

.ofertas-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333333;
  line-height: 1.3;
}

.ofertas-section-sub {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: #757575;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .ofertas-section-title {
    font-size: 1.45rem;
  }

  .ofertas-section-sub {
    font-size: 1.05rem;
  }
}

main input[type="text"],
main input[type="tel"],
main input[type="email"],
main input[type="password"],
main select,
main textarea,
.fund-input {
  font-size: 1rem;
}

@media (min-width: 768px) {
  main input[type="text"],
  main input[type="tel"],
  main input[type="email"],
  main input[type="password"],
  main select,
  main textarea,
  .fund-input {
    min-height: 3.35rem;
    font-size: 1.0625rem;
  }
}

.input-group .relative > span.absolute {
  top: 50% !important;
  transform: translateY(-50%);
}

details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

.fund-input.done,
input.done,
select.done {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
  font-weight: 600;
  cursor: not-allowed;
}

.fund-input.errors,
input.errors,
select.errors {
  background-color: #fef2f2;
  border-color: #f87171 !important;
  color: #991b1b;
  font-weight: 600;
}

/* Select2 — match rounded-xl inputs */
.select2-container {
  width: 100% !important;
}

.select2-container .select2-selection--single {
  height: 3.35rem !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.75rem !important;
  padding: 0.55rem 0.85rem !important;
  background: #fff !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 2.15rem !important;
  color: #1e293b !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  padding-left: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 3.2rem !important;
  right: 8px !important;
}

.select2-results__option {
  font-size: 1rem !important;
  padding: 0.55rem 0.85rem !important;
}

.select2-dropdown {
  border-color: #cbd5e1 !important;
  border-radius: 0.75rem !important;
  overflow: hidden;
  z-index: 1060 !important;
}

.select2-container--open .select2-selection--single {
  border-color: #DA5F21 !important;
  box-shadow: 0 0 0 2px rgba(218, 95, 33, 0.25);
}

/* Bootstrap 4 modal essentials (JS still depends on these) */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.modal.fade {
  opacity: 0;
  transition: opacity 0.15s linear;
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}

.modal.show {
  opacity: 1;
}

.modal.show .modal-dialog,
.modal.in .modal-dialog {
  transform: none;
}

.modal.show,
.modal.in {
  display: block;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  max-width: 28rem;
  pointer-events: none;
}

.modal-dialog-scrollable {
  max-height: calc(100% - 3.5rem);
}

.modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 3.5rem);
  overflow: hidden;
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  outline: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem 1.25rem;
  color: #475569;
  font-size: 1rem;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem 1.1rem;
  border-top: 1px solid #f1f5f9;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #0f172a;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.show,
.modal-backdrop.in {
  opacity: 0.45;
}

.modal-open {
  overflow: hidden;
}

.fas.fa-times.btn-close,
.modal .btn-close {
  cursor: pointer;
  color: #94a3b8;
  font-size: 1rem;
  background: transparent;
  border: none;
}

.fas.fa-times.btn-close:hover,
.modal .btn-close:hover {
  color: #0f172a;
}

/* Modal action buttons (JS selectors depend on these class names) */
.modal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.2;
}

.modal .btn-primary,
.modal .btn-success {
  background: #DA5F21;
  color: #fff;
  border-color: #DA5F21;
}

.modal .btn-primary:hover,
.modal .btn-success:hover {
  background: #C24F18;
}

.modal .btn-outline-secondary,
.modal .btn-outline-danger {
  background: #fff;
  color: #475569;
  border-color: #cbd5e1;
}

.modal .btn-outline-danger {
  color: #b91c1c;
  border-color: #fecaca;
}

.modal .btn-outline-secondary:hover,
.modal .btn-outline-danger:hover {
  background: #f8fafc;
}

.modal .form-group {
  margin-bottom: 0.85rem;
}

.modal .form-group label,
.modal label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.25rem;
}

.modal .form-control,
.modal input[type="text"],
.modal input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  outline: none;
}

.modal .form-control:focus,
.modal input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px #DA5F21;
}

.modal-lg {
  max-width: 36rem;
}

/* Success / error result modals */
#error .modal-header,
#success .modal-header {
  justify-content: center;
  position: relative;
}

#error .modal-header {
  background: #dc2626;
}

#success .modal-header {
  background: #DA5F21;
}

#error .modal-header h5 i,
#success .modal-header h5 i {
  color: #fff;
  font-size: 3.5rem;
}

#error .modal-header > i,
#success .modal-header > i {
  position: absolute;
  right: 1rem;
  top: 1rem;
  color: #e2e8f0;
}

#error h1,
#success h1 {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

#error p,
#success p {
  text-align: center;
  color: #64748b;
}

#error .skip-modal,
#success .skip-modal {
  display: inline-flex;
  color: #fff;
  background-color: #DA5F21;
  border-radius: 0.75rem;
  padding: 0.6rem 1.25rem;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert .close {
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: inherit;
}

/* Toastr over sticky footer */
#toast-container {
  z-index: 40;
}
