.main-modal {
  padding: 20px;
}

.custom-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1050;
}

.custom-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.custom-modal-content {
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  color: #1e293b;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  transform: scale(0.95) translateY(15px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
}

.custom-backdrop.show .custom-modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.circle-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  z-index: 10;
}

.circle-close-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.nav-tabs-capsule {
  background: #f1f5f9;
  border-radius: 14px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  display: flex;
  width: 100%;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 10px;
  color: #64748b;
  transition: all 0.2s ease;
}

.tab-btn.active-tab {
  background: #fff;
  color: #1D60E5;
}

.form-label {
  font-size: 14px;
  color: #000;
  text-transform: capitalize;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.custom-input,
.custom-select {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e293b;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  background: #fff;
  transition: all 0.2s ease;
}

.custom-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.contact-input,
.form-control.contact-input {
  padding-left: 0 !important;
}

.custom-input:focus,
.custom-select:focus {
  border-color: #1D60E5;
  box-shadow: 0 0 0 4px rgba(29, 96, 229, 0.12);
  outline: none;
}

.custom-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 12px;
  padding-right: 40px;
}

.phone-input-group {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

.phone-input-group:focus-within {
  border-color: #1D60E5;
  box-shadow: 0 0 0 4px rgba(29, 96, 229, 0.12);
}

.country-trigger {
  background: transparent;
  border: none;
  padding: 0 8px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  height: 48px;
  outline: none;
}

.country-dropdown-popover {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  width: 300px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  z-index: 1100;
  overflow: hidden;
  display: none;
}

.country-dropdown-popover.show {
  display: block;
}

.country-list-scroll {
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
}

.country-item {
  width: 100%;
  border: none;
  background: transparent;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  outline: none;
}

.country-item:hover {
  background: #f1f5f9;
}

.country-item.selected {
  background: rgba(29, 96, 229, 0.05);
  font-weight: 600;
}

.custom-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-checkbox-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #1D60E5;
}

.custom-checkbox-wrapper label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  user-select: none;
  line-height: 1.45;
}

.submit-btn {
  background: #1D60E5;
  border: none;
  font-weight: 500;
  font-size: 18px;
  padding: 9px 30px;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(29, 96, 229, 0.2);
}

.submit-btn:hover {
  background: #005ae6;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(29, 96, 229, 0.3);
}

.success-overlay {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  border-radius: 24px;
}

.success-overlay.show {
  display: flex;
}

.form-control {
  min-height: 48px;
  border-radius: 12px !important;
}