[x-cloak] {
  display: none;
}

h1,
h2,
h3 {
  color: var(--paws-green) !important;
}

/**
 * Hacks for the wizard
 */

.hamburger {
  left: -11px !important;
}

.clio-page-verify-id .hamburger,
.clio-page-register .hamburger {
  left: 13px !important;
}

/**
 * Utilities when non Bootstrap full
 */
.flex-column-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flex-row-center {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.my-1 {
  margin: 8px 0;
}

.my-2 {
  margin: 16px 0;
}

.my-3 {
  margin: 24px 0;
}

.my-4 {
  margin: 32px 0;
}

.my-5 {
  margin: 40px 0;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 32px;
}

.mt-5 {
  margin-top: 40px;
}

.fw-bold {
  font-weight: 700;
}

/**
 * Buttons
 */
.button[disabled],
button.is-disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* essentially for a href buttons */
.button {
  padding: 0 20px;
  height: 40px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/**
 * Idenfy
 */
.top-text {
  font-size: 18px;
  font-weight: 700;
  margin: 0px;
  color: gray;
}

.idenfy-verification-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

a.idenfy-verify-btn,
a.idenfy-verify-btn:hover {
  color: white !important;
}

.idenfy-verify-btn {
  padding: 0 20px;
  height: 40px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: var(--paws-green);
  color: white;
}

/* .idenfy-verify-btn:hover {
  background: var(--paws-green);
} */

.idenfy-verify-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.idenfy-description {
  margin-top: 8px;
  color: #666;
  font-size: 14px;
}

.idenfy-status {
  padding: 16px;
  border-radius: 4px;
  margin: 16px 0;
}

.idenfy-status p {
  margin: 0;
}

.idenfy-status.verified {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.idenfy-status.pending {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

.idenfy-status.rejected,
.idenfy-status.expired {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.idenfy-loading {
  margin-top: 12px;
  color: #666;
}


/**
 * Notifications
 */
.notification,
.homeNotification,
.petNotification {
  padding: 15px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.notification.success,
.homeNotification.success,
.petNotification.success {
  background: #d4edda;
  color: var(--paws-green);
  border: 1px solid #c3e6cb;
}

.notification.error,
.homeNotification.error,
.petNotification.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.notification p,
.homeNotification p,
.petNotification p {
  margin: 0;
}

/**
 * Pets
 */
.image-previews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.preview-item {
  position: relative;
  display: block;
}

.preview-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.remove-img-btn {
  position: absolute !important;
  bottom: 8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(128, 128, 128, 0.6) !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 4px 12px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  height: auto !important;
  min-height: auto !important;
  line-height: normal !important;
  cursor: pointer;
  transition: background 0.2s ease !important;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  display: inline-block !important;
  width: auto !important;
}

.remove-img-btn:hover {
  background: rgba(0, 0, 0, 0.6) !important;
}

/**
 * Image upload with progress
 */
.upload-progress-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.progress-circle {
  position: relative;
  width: 80px;
  height: 80px;
}

.circular-progress {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 2.8;
}

.circle {
  fill: none;
  stroke: #115740;
  stroke-width: 2.8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s;
}

.progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #115740;
}

.progress-text small {
  font-size: 10px;
  font-weight: normal;
  color: #666;
  margin-top: 2px;
}


/**
 * Steps
 */
/**
 * Steps
 */
.clio-steps-container {
  max-width: none !important;
  margin: 0 auto 40px;
}

.clio-step-wrapper {
  display: flex;
  justify-content: space-between;
  position: relative;
}

@media only screen and (max-width: 767px) {
  .clio-step-wrapper {
    flex-direction: row !important; /* Keep horizontal - !important to override conflicts */
    gap: 8px !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 15px;
    margin: 0 -15px;
    align-items: center !important; /* Override flex-start */
    
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .clio-step-item:not(.clio-completed):first-of-type {
    animation: pulse-hint 2s ease-in-out 3;
  }
  
  .clio-step-wrapper::-webkit-scrollbar {
    display: none;
  }
  
  /* Fade indicator on right edge */
  .clio-steps-container {
    position: relative;
  }
  
  .clio-steps-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 10;
  }
}

.clio-step-wrapper:after {
  display: none;
}

.clio-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e0e0e0;
  flex-shrink: 0;
}

@media only screen and (max-width: 767px) {
  .clio-step-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}

.clio-step-text {
  font-size: 16px;
  color: #707070;
}

@media only screen and (max-width: 767px) {
  .clio-step-text {
    font-size: 14px;
    white-space: nowrap;
  }
}

.clio-step-text a:hover {
  text-decoration-line: underline !important;
  text-decoration-style: dotted !important;
  text-underline-offset: 7px !important;
}

.clio-step-item.clio-completed .clio-step-icon {
  background-color: var(--paws-green);
  border-color: var(--paws-green);
  color: #fff;
}

.clio-step-item.clio-completed .clio-step-text {
  color: var(--paws-green);
}

.clio-step-item.clio-active .clio-step-icon {
  border-color: var(--paws-green);
  background-color: #fff;
}

.clio-step-item.clio-active .clio-step-text,
.clio-step-item.clio-completed .clio-step-text {
  color: var(--paws-green);
  font-weight: 600;
}

.clio-step-item:last-child::after {
  display: none;
}

.clio-step-item {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  gap: 10px;
  padding: 0 20px;
  background: #fff;
  flex-shrink: 0;
}

@media only screen and (max-width: 767px) {
  .clio-step-item {
    width: auto !important; /* Override any width:100% */
    padding: 8px 12px !important;
    border-left: none !important; /* Remove vertical border */
    border-radius: 8px;
    scroll-snap-align: start;
    min-width: auto;
  }
}

.clio-step-item-current {
  color: var(--paws-green);
  border-bottom-style: dashed;
  padding-bottom: 15px !important;
  padding-top: 15px !important;
  border: 2px solid var(--paws-green);
  background: var(--paws-green-light) !important;
  box-shadow: 0 0 6px var(--paws-green);
}

@media only screen and (max-width: 767px) {
  .clio-step-item-current {
    padding: 10px 12px !important;
  }
}

@keyframes pulse-hint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}


/**
 * Inputs and form elements
 */

.input-text {
  border: 1px solid #ccc !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.input-text:hover {
  border-color: var(--paws-green) !important;
  /* subtle blue */
  box-shadow: 0 0 3px var(--paws-green-rgba) !important;
}

.input-text:focus {
  border-color: var(--paws-green) !important;
  /* brighter blue when typing */
  box-shadow: 0 0 5px var(--paws-green-rgba) !important;
  outline: none;
}

/* mobile first */
.continue-button {
  display: flex !important;
}

.idenfy-verify-btn {
  display: flex;
}

.form-actions-end {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  flex-direction: column;
  /* Stack on mobile */
  align-items: stretch;
  /* Make buttons full width on mobile */
}

.form-actions-around {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

/* desktop! */
@media only screen and (min-width: 768px) {

  .continue-button {
    display: inline-flex !important;
  }

  .idenfy-verify-btn {
    display: inline-flex !important;
  }

  .form-actions-end {
    flex-direction: row;
    /* Side by side on desktop */
    align-items: center;
  }
}

/**
 * Spinner loader Styles
 */
.clioLoading {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.clioLoading svg {
  animation: clioSpin 1.2s linear infinite;
}

@keyframes clioSpin {
  to {
    transform: rotate(360deg);
  }
}