* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #2c3e50;
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.top-bar {
  background: #F8C617;
  padding: 10px 48px 10px 16px;
  text-align: center;
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-bar span {
  flex: 1;
  text-align: center;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.top-bar .close-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  padding: 4px;
  font-family: inherit;
  font-weight: 300;
}

.form-page {
  min-height: calc(100vh - 49px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 80px;
  background: #fff;
}

.card-wrap {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 48px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .card {
    padding: 32px 24px;
  }
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.small-logo {
  height: 28px;
  width: auto;
}

.form-title {
  font-size: 30px;
  font-weight: 700;
  color: #090D1D;
  text-align: left;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.stepper {
  margin: 0 0 32px;
  width: 100%;
}

.steps {
  display: flex;
  width: 100%;
  align-items: center;
}

.step-item {
  display: flex;
  align-items: center;
}

.step-item:not(:last-child) {
  flex: 1;
}

.progressDot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  background: #D1D5DB;
  position: relative;
  z-index: 10;
  transition: all 0.3s;
}

.progressDot.active {
  background: #F8C617;
}

.progressDot.done {
  background: #F8C617;
}

.progressLine {
  flex: 1;
  height: 2px;
  background: #D1D5DB;
  position: relative;
}

.progressLineToAnimate {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  background: #F8C617;
  width: 0;
  transition: width 0.5s;
}

.progressLineToAnimate.full {
  width: 100%;
}

.pulse-yellow {
  animation: pulseYellow 1.8s infinite;
}

@keyframes pulseYellow {
  0% { box-shadow: 0 0 0 0 rgba(248, 198, 23, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(248, 198, 23, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 198, 23, 0); }
}

.labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
}

.label {
  font-size: 10px;
  font-weight: 600;
  color: #313545;
  text-align: left;
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-family: 'Poppins', sans-serif;
}

.label:last-child {
  text-align: right;
  flex: 0;
  white-space: nowrap;
}

.label.active {
  color: #111827;
}

.slide {
  display: none;
  animation: fadeIn 0.3s;
}

.slide.on {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-head {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  text-align: left;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: #313545;
  text-align: left;
  margin-bottom: 24px;
  line-height: 1.5;
  font-weight: 400;
}

.mc-dot-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 0;
}

.mc-tabs {
  display: flex;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}

.mc-tab {
  padding: 15px 16px;
  height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid #E5E7EB;
  font-family: inherit;
  transition: all 0.15s;
  background: #fff;
  color: #A9ADBD;
}

.mc-tab:first-child {
  border-radius: 5px 0 0 5px;
  border-right: none;
}

.mc-tab:last-child {
  border-radius: 0 5px 5px 0;
}

.mc-tab.active {
  background: #F8C617;
  color: #fff;
  border-color: #F8C617;
}

.search-wrap {
  flex: 1;
  position: relative;
}

.search-wrap input {
  width: 100%;
  height: 53px;
  padding: 15px 44px 15px 24px;
  border: 1px solid #C7CBDB;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: #F7F7FA;
  outline: none;
  color: #111827;
}

.search-wrap input:focus {
  border-color: #F8C617;
  background: #fff;
}

.search-wrap input::placeholder {
  color: #9CA3AF;
}

.search-wrap .s-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #9CA3AF;
}

.search-btn {
  width: 100%;
  height: 53px;
  padding: 15px 24px;
  background: #fff;
  border: 1px solid #EDEDF0;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #EDEDF0;
  font-family: inherit;
  cursor: pointer;
  margin-top: 16px;
  transition: all 0.15s;
}

.search-btn:not(:disabled) {
  background: #F8C617;
  border-color: #F8C617;
  color: #fff;
}

.search-btn:not(:disabled):hover {
  background: #EAB308;
}

.search-btn:disabled {
  background: #fff;
  border-color: #EDEDF0;
  color: #EDEDF0;
  cursor: not-allowed;
}

.result-card {
  display: none;
  margin-top: 16px;
  margin-bottom: 16px;
  border-radius: 5px;
  border: 2px solid #F8C617;
  padding: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.result-card.show {
  display: block;
}

.rc-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #9CA3AF;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.rc-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.rc-numbers {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.5;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  margin: 20px auto;
  border: 3px solid #E5E7EB;
  border-top: 3px solid #9CA3AF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-primary {
  width: 100%;
  height: 53px;
  padding: 15px 24px;
  background: #EDEDF0;
  color: #fff;
  border: 1px solid #EDEDF0;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 24px;
}

.btn-primary:not(:disabled) {
  background: #F8C617;
  border-color: #F8C617;
  color: #fff;
}

.btn-primary:not(:disabled):hover {
  background: #EAB308;
}

.btn-primary:disabled {
  background: #EDEDF0;
  border-color: #EDEDF0;
  color: #fff;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  height: 53px;
  padding: 15px 24px;
  background: #fff;
  color: #6B7280;
  border: 1px solid #E5E7EB;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.15s;
  font-family: inherit;
}

.btn-secondary:hover {
  border-color: #9CA3AF;
  color: #374151;
}

.bottom-section {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bottom-text {
  font-size: 14px;
  color: #6B7280;
  font-weight: 400;
}

.bottom-link {
  font-size: 14px;
  color: #F8C617;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.bottom-link:hover {
  color: #EAB308;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.overlay.show {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
}

.modal .mclose {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: #9CA3AF;
}

.modal h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.modal p {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal .mb {
  width: 100%;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}

.modal .mb-p {
  background: #F8C617;
  color: #fff;
  border: none;
}

.modal .mb-p:hover {
  background: #EAB308;
}

.modal .mb-s {
  background: #fff;
  color: #374151;
  border: 1px solid #E5E7EB;
}

.modal .mb-s:hover {
  background: #F9FAFB;
}

.warn-box {
  background: #FFFBF0;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.warn-box svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.warn-box .wtxt {
  font-size: 12px;
  color: #92400E;
  line-height: 1.5;
}

.resend-area {
  margin-top: 20px;
  text-align: center;
}

.resend-area p {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 4px;
}

.resend-link {
  background: none;
  border: none;
  color: #F8C617;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}

#toastBox {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.toast {
  padding: 12px 18px;
  border-radius: 8px;
  background: #1F242E;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 10px;
  align-items: center;
  animation: slideIn 0.3s ease;
}

.toast.err {
  background: #DC2626;
}

.toast.ok {
  background: #10B981;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.iti {
  display: block !important;
  width: 100% !important;
}

.iti input {
  width: 100% !important;
  height: 53px !important;
  border: 1px solid #C7CBDB !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  padding-left: 80px !important;
  font-family: 'Poppins', sans-serif !important;
  background: #F7F7FA !important;
}

.iti input:focus {
  border-color: #F8C617 !important;
  background: #fff !important;
  outline: none !important;
}

#phone {
  width: 100%;
  height: 53px;
  padding: 15px 16px;
  border: 1px solid #C7CBDB;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  background: #F7F7FA;
  outline: none;
  color: #111827;
}

#phone:focus {
  border-color: #F8C617;
  background: #fff;
}

#phone::placeholder {
  color: #9CA3AF;
}

#vcode {
  width: 100%;
  height: 53px;
  padding: 15px 16px;
  border: 1px solid #C7CBDB;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  background: #F7F7FA;
  outline: none;
  color: #111827;
}

#vcode:focus {
  border-color: #F8C617;
  background: #fff;
}

.dropdown {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.drop-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 14px;
  border: 1px solid #C7CBDB;
  border-radius: 5px;
  font-size: 14px;
  background: #F7F7FA;
  cursor: pointer;
  font-family: inherit;
  font-weight: 400;
  color: #111827;
}

.drop-trigger.open {
  border-color: #F8C617;
  background: #fff;
  border-radius: 5px 5px 0 0;
}

.drop-trigger svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.drop-trigger.open svg {
  transform: rotate(180deg);
}

.drop-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #C7CBDB;
  border-top: none;
  border-radius: 0 0 5px 5px;
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
  display: none;
}

.drop-menu.open {
  display: block;
}

.drop-item {
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.drop-item:hover {
  background: #F9FAFB;
}

.drop-item .t1 {
  font-size: 14px;
  color: #111827;
}

.drop-item .t2 {
  font-size: 12px;
  color: #9CA3AF;
}

.ftype {
  display: none;
}

.ftype.on {
  display: block;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #374151;
  margin-bottom: 6px;
  text-align: left;
  letter-spacing: 0.3px;
}

.input {
  width: 100%;
  padding: 15px 14px;
  border: 1px solid #C7CBDB;
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
  background: #F7F7FA;
  transition: all 0.2s;
  font-weight: 400;
  color: #111827;
  outline: none;
}

.input:focus {
  border-color: #F8C617;
  background: #fff;
}

@media (max-width: 600px) {
  .form-title {
    font-size: 24px;
  }
  .mc-tab {
    padding: 10px 12px;
    font-size: 13px;
    height: 45px;
  }
  .search-wrap input {
    height: 45px;
    padding: 12px 40px 12px 16px;
  }
  .search-btn {
    height: 45px;
  }
  .btn-primary, .btn-secondary {
    height: 45px;
  }
  .iti input {
    height: 45px !important;
  }
  #phone, #vcode {
    height: 45px;
  }
}