/* === Container === */
.dda-ur-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 30px;
  background: #fafafa;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* === Title === */
.dda-ur-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #111827;
  position: relative;
}
.dda-ur-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #e11d48;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* === Form Layout === */
.dda-ur-form { display:flex; flex-direction:column; gap:20px; }
.dda-ur-row { display:flex; gap:20px; flex-wrap:wrap; }
.dda-ur-field { flex:1; display:flex; flex-direction:column; }
.dda-ur-field.full { flex:100%; }

/* === Labels === */
.dda-ur-field label {
  font-size:14px; font-weight:600; margin-bottom:6px; color:#111827;
}

/* === Inputs & Textareas === */
.dda-ur-field input,
.dda-ur-field select,
.dda-ur-field textarea {
  padding:12px 16px; border:1px solid #ddd; border-radius:30px;
  font-size:15px; background:#fff; outline:none;
  transition:border-color 0.2s ease, box-shadow 0.2s ease;
}
.dda-ur-field textarea { border-radius:16px; resize:vertical; }
.dda-ur-field input:focus,
.dda-ur-field select:focus,
.dda-ur-field textarea:focus {
  border-color:#e11d48; box-shadow:0 0 0 3px rgba(225,29,72,0.2);
}

/* Required highlight */
.dda-ur-field input:invalid,
.dda-ur-field select:invalid,
.dda-ur-field textarea:invalid {
  border-color:#e11d48; box-shadow:0 0 0 2px rgba(225,29,72,0.2);
}

/* === TomSelect Custom === */
.ts-control {
  border-radius: 30px !important;
  border: 1px solid #ddd !important;
  padding: 10px 14px !important;
  font-size: 15px !important;
  background: #fff !important;
  min-height: 44px !important;
}
.ts-control input {
  font-size: 15px !important;
}
.ts-dropdown {
  border-radius: 12px !important;
  border: 1px solid #ddd !important;
  font-size: 15px !important;
  background: #fff !important;
  z-index: 9999 !important;
}
.ts-dropdown .option {
  padding: 10px 12px !important;
  cursor: pointer;
}
.ts-dropdown .option:hover {
  background: #f3f4f6 !important;
}
.ts-wrapper.single .ts-control {
  cursor: pointer;
}

/* === GPS Button === */
.dda-ur-btn {
  margin-top:8px; background:#374151; color:#fff; border:none;
  border-radius:30px; padding:8px 18px; cursor:pointer;
  font-size:14px; transition:background 0.2s ease, transform 0.1s ease;
}
.dda-ur-btn:hover { background:#111827; transform:translateY(-1px); }

/* === Submit Button === */
.dda-ur-submit { text-align:center; }
.dda-ur-submit button {
  background:#e11d48; color:#fff; font-size:16px; font-weight:600;
  padding:14px 36px; border:none; border-radius:40px; cursor:pointer;
  transition:background 0.2s ease, transform 0.1s ease;
}
.dda-ur-submit button:hover { background:#be123c; transform:translateY(-1px); }

/* === Alerts === */
.dda-ur-alert { margin-bottom:20px; padding:12px 15px; border-radius:8px; font-weight:600; }
.dda-ur-alert.success { background:#ecfdf5; border:1px solid #10b981; color:#065f46; }
.dda-ur-alert.error { background:#fef2f2; border:1px solid #f87171; color:#7f1d1d; }

/* === Hide Form === */
.hide-form { display:none; }

/* === Responsive === */
@media (max-width:768px) { .dda-ur-row { flex-direction:column; gap:15px; } }

/* === Loader === */
.dda-loader {
  background:rgba(255,255,255,0.9); position:absolute; top:0; left:0; right:0; bottom:0;
  display:none; align-items:center; justify-content:center;
  z-index:1000; flex-direction:column; font-family:"Segoe UI", sans-serif; border-radius:20px;
}
.dda-spinner {
  border:4px solid #f3f3f3; border-top:4px solid #e11d48; border-radius:50%;
  width:45px; height:45px; animation:spin 1s linear infinite; margin-bottom:12px;
}
@keyframes spin { 0% {transform:rotate(0deg);} 100% {transform:rotate(360deg);} }
.dda-loader-text { font-size:15px; font-weight:600; color:#111827; }

/* === Success Box === */
.dda-ur-success-box {
  max-width: 600px;
  margin: 20px auto;
  background: #ecfdf5;
  border: 1px solid #10b981;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: "Segoe UI", sans-serif;
}
.dda-ur-success-box .icon-wrap {
  width: 60px; height: 60px; margin: 0 auto 15px;
  border-radius: 50%;
  background: #10b981;
  display: flex; align-items: center; justify-content: center;
}
.dda-ur-success-box .icon { color: #fff; font-size: 28px; font-weight: bold; }

/* === Error Box === */
.dda-ur-error-box {
  max-width: 600px;
  margin: 20px auto;
  background: #fef2f2;
  border: 1px solid #f87171;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: "Segoe UI", sans-serif;
}
.dda-ur-error-box .icon-wrap {
  width: 60px; height: 60px; margin: 0 auto 15px;
  border-radius: 50%;
  background: #ef4444;
  display: flex; align-items: center; justify-content: center;
}
.dda-ur-error-box .icon { color: #fff; font-size: 28px; font-weight: bold; }

/* === Force hide theme’s duplicate dropdowns (Select2, Bootstrap-Select) === */
.dda-ur-container .select2-container,
.dda-ur-container .bootstrap-select {
  display: none !important;
}
/* Match TomSelect fields (District, PS, Area) to text inputs */
.ts-wrapper.single .ts-control {
  border: 2px solid #ddd;
  border-radius: 25px;         /* Match input roundness */
  padding: 10px 14px;          /* Match spacing */
  font-size: 15px;
  height: 48px;                /* Match input height */
  line-height: 26px;
  background-color: #fff;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.ts-wrapper.single .ts-control input {
  font-size: 15px;
  line-height: 26px;
}

/* Focus & hover like normal inputs */
.ts-wrapper.single .ts-control.focus,
.ts-wrapper.single .ts-control:hover {
  border-color: #999;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

/* Invalid style (same as other inputs) */
.ts-wrapper.invalid .ts-control {
  border: 1px solid #e11d48 !important;  /* match input thickness */
  border-radius: 30px !important;
  box-shadow: 0 0 0 2px rgba(225,29,72,0.2) !important; /* same glow */
}

/* Disabled TomSelect look */
.ts-wrapper.disabled .ts-control {
  background-color: #f3f4f6 !important; /* light grey */
  border: 1px solid #ddd !important;
  color: #9ca3af !important;           /* grey text */
  cursor: not-allowed !important;
  opacity: 0.7;
}

/* Prevent dropdown from opening */
.ts-wrapper.disabled .ts-control::after {
  display: none !important;
}

