:root {
  --primary-color: #f39207;
  --secondary-color: #00884c;
  --success-color: #00884c;
  --disabled-color: #b2b2b2;
  --background-color: #f5f5f5;
  --card-background: #ffffff;
  --text-primary: #111418;
  --text-secondary: #637488;
  --border-color: #e5e7eb;
  --error-color: #d32f2f;
  --white: #ffffff;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary);
}

.ebrima,
.font-ebrima {
  font-family: "Ebrima", sans-serif;
}

.form-input,
.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--card-background);
  color: var(--text-primary);
  transition: all 0.2s;
  outline: none;
  height: 42px;
}

.form-input:focus,
.input-field:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(243, 146, 7, 0.2);
}

.date-input-container {
  position: relative;
}

.date-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: var(--card-background);
  color: var(--text-primary);
  transition: all 0.2s;
  outline: none;
  height: 42px;
}

.date-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(243, 146, 7, 0.2);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  transition: opacity 0.2s;
  cursor: pointer;
  height: 48px;
  border: none;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  transition: all 0.2s;
  height: 48px;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-disabled {
  background-color: var(--disabled-color);
  color: var(--white);
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  cursor: not-allowed;
  height: 48px;
}

.upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background-color: #fafafa;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 150px;
}

.upload-zone:hover {
  border-color: var(--primary-color);
  background-color: #fff8f0;
}

.upload-zone img {
  max-height: 100%;
  max-width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.error {
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

#splash,
#loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
}

#loading-overlay {
  background-color: rgba(17, 20, 24, 0.75);
}

#splash img {
  height: 100px;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.progress-container {
  width: 100%;
  background-color: #e5e7eb;
  border-radius: 0.5rem;
  height: 0.5rem;
}

.progress-bar {
  height: 100%;
  background-color: var(--success-color);
  border-radius: 0.5rem;
  width: 0%;
  transition: width 0.3s ease;
}

.relative {
  position: relative;
}

.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1-px rgba(0, 0, 0, 0.06);
  max-height: 200px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin-top: 0;
}

.hidden {
  display: none !important;
}

.dropdown-list li {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-list li:hover {
  background-color: #f5f5f5;
}

.select-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23637488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.2rem;
  padding-right: 2.5rem;
  height: 42px;
}

.flatpickr-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23637488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3e%3c/rect%3e%3cline x1='16' y1='2' x2='16' y2='6'%3e%3c/line%3e%3cline x1='8' y1='2' x2='8' y2='6'%3e%3c/line%3e%3cline x1='3' y1='10' x2='21' y2='10'%3e%3c/line%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.2rem;
  padding-right: 2.5rem;
}

@keyframes final-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.my-final-spinner {
  width: 4rem;
  height: 4rem;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: final-spin 1s linear infinite;
}

.upload-zone:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(243, 146, 7, 0.2);
}

.phone-input-group {
  display: flex;
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  height: 42px;
}

.custom-select-country {
  position: relative;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.custom-select-country .selected {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1px solid #6b7280;
  border-radius: 0;
  background: var(--card-background);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23637488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.2rem;
  box-shadow: none;
  height: 42px;
}

.custom-select-country .selected img {
  width: 24px;
  height: auto;
  margin-right: 0.5rem;
  object-fit: cover;
}

.custom-select-country .options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 0;
  max-height: 250px;
  overflow-y: auto;
  display: none;
  z-index: 10;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.custom-select-country .option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
  padding: 0.75rem 1rem;
}

.custom-select-country .option img {
  width: 24px;
  height: auto;
  object-fit: cover;
}

.custom-select-country .option:hover {
  background: #f0f0f0;
}

.custom-select-country.open .options {
  display: block;
}
.phone-num-input {
  flex-grow: 1;
  border: none !important;
  border-radius: 0 !important;
  padding: 0.75rem 1rem;
  height: 100%;
}

.phone-num-input:focus {
  box-shadow: none !important;
  outline: none;
}

.phone-input-group:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(243, 146, 7, 0.2);
}

.phone-input-group.focus-open {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(243, 146, 7, 0.2);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.phone-input-group.focus-open .custom-select-country {
  z-index: 51;
}

.phone-input-group.error-border {
  border-color: var(--error-color);
}

.phone-input-group.error-border:focus-within {
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

.form-input.is-error,
.date-input.is-error,
.select-input.is-error {
  border-color: var(--error-color) !important;
}

.form-input.is-error:focus,
.date-input.is-error:focus,
.select-input.is-error:focus {
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2) !important;
}

