@media (max-width: 600px) {
  .retainer-callout {
    width: 90% !important;
    margin-left: 5% !important;
  }
}

/* Frozen Account Banner Styles */
.retainer-callout.frozen-account {
  background: #4254ff !important;
  color: #ffffff !important;
  cursor: default !important;
}

.retainer-callout.frozen-account:hover {
  background: #4254ff !important;
  color: #ffffff !important;
}

/* Waitlist Account Banner Styles */
.retainer-callout.waitlist-account {
  background: #4254ff !important;
  color: #fff !important;
  cursor: pointer !important;
}

.retainer-callout.waitlist-account:hover {
  background: #4254ff !important;
  color: #fff !important;
}

/* Pending Account Banner Styles */
.retainer-callout.pending-account {
  background: #4254ff !important;
  color: #fff !important;
  cursor: default !important;
}

.retainer-callout.pending-account:hover {
  background: #4254ff !important;
  color: #fff !important;
}

input[type="text"]:focus{
  box-shadow: none !important;
}

/* Retainer Modal Styles */
.retainer-dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1001;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}
.retainer-content {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 500px;
  padding: 30px;
  animation: retainer-modalFadeIn 0.3s ease;
  border: none;
}
.retainer-title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 18px;
  color: #252525;
  text-align: center;
}
.retainer-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}
.retainer-close {
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  border: none;
  font-size: 15px;
  transition: all 0.2s ease;
  min-width: 100px;
  background-color: #4353ff;
  color: white;
  box-shadow: 0 2px 8px rgba(67, 83, 255, 0.3);
  text-align: center;
}
.retainer-close:hover {
  background-color: #3a49e0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67, 83, 255, 0.4);
}
.retainer-invite {
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  border: 1px solid #4353ff;
  font-size: 15px;
  background-color: white;
  color: #4353ff;
  box-shadow: 0 2px 8px rgba(67, 83, 255, 0.3);
  text-align: center;
  transition: all 0.2s ease;
}
.retainer-invite:hover {
  background-color: #f0f4ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67, 83, 255, 0.4);
}
@keyframes retainer-modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

#serviceField {
  transition: color 0.3s ease-out;
}

#serviceField::placeholder {
  color: #999;
  opacity: 1;
  transition: opacity 0.3s ease-out, color 0.3s ease-out;
}

#serviceField.placeholder-hidden::placeholder {
  opacity: 0 !important;
}

/* Response mode styles */
#serviceField.response-mode {
  background-color: white !important;
  color: #4353ff !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #4353ff !important; /* For iOS */
  -webkit-opacity: 1 !important;
}

#serviceField.response-mode::placeholder {
  color: #4353ff !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #4353ff !important;
}

/* Fix for disabled input appearance on mobile */
#serviceField:disabled {
  background-color: white !important;
  opacity: 1 !important;
  -webkit-appearance: none !important;
}

.your-service {
  position: relative;
}
.msp-loading-text {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #4353ff;
  font-weight: 500;
  pointer-events: none;
  z-index: 1;
}
.countdown-timer {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  padding: 0 6px;
  border-radius: 100px;
  color: #666;
  font-size: 14px;
  z-index: 10;
}

/* Racing Border Animation for Loading State */
.msp-racing-border-svg {
  position: absolute;
  top: -3px;
  left: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  z-index: 0;
  pointer-events: none;
}
.msp-racing-border-svg rect {
  fill: none;
  stroke: #4353ff;
  stroke-width: 3;
  stroke-linecap: round;
}

.wpcf7-response-output {
  visibility: hidden;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.wpcf7-response-output.show-error {
  visibility: visible;
  height: auto;
  margin: 1em 0;
  padding: 0.5em;
  overflow: visible;
}

/* Terms Agreement Modal Styles */
.loophole-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1002;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loophole-modal-overlay.show {
  display: flex;
  opacity: 1;
}

.loophole-modal-content {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  animation: modalSlideIn 0.3s ease;
  border: none;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.loophole-modal-overlay.show .loophole-modal-content {
  transform: translateY(0);
}

.loophole-terms-modal-content {
  max-width: 520px;
  width: 95%;
  padding: 30px;
}

.loophole-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.loophole-modal-header h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: #252525;
}

.loophole-modal-body {
  text-align: left;
}

.terms-message {
  font-size: 16px;
  color: #555;
  margin: 0 0 24px 0;
  line-height: 1.5;
  text-align: center;
}

.loophole-terms-modal-content .terms-link {
  justify-content: center;
  text-align: center;
}

.terms-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 28px 0;
  padding: 20px;
  background: #f8f9ff;
  border-radius: 8px;
  border: 1px solid #e1e5ff;
}

.terms-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  text-decoration: none;
  color: #4353ff;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
}

.terms-link:hover {
  background: #f0f4ff;
  border-color: #4353ff;
  box-shadow: 0 2px 8px rgba(67, 83, 255, 0.15);
  text-decoration: none;
  color: #4353ff;
}

.terms-checkbox-container {
  margin: 0 0 28px 0;
  padding: 18px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #4353ff;
}

.terms-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  line-height: 1.4;
}

.terms-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.terms-checkbox-text {
  font-size: 15px;
  color: #333;
  font-weight: 500;
  user-select: none;
}

.terms-buttons {
  display: flex;
  gap: 12px;
  margin: 0;
}

.terms-buttons .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.terms-buttons .btn-primary {
  background: #4353ff;
  color: white;
}

.terms-buttons .btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.terms-buttons .btn-primary:not(:disabled):hover {
  background: #3a47e6;
  box-shadow: 0 4px 12px rgba(67, 83, 255, 0.3);
}

.terms-buttons .btn-secondary {
  background: white;
  color: #666;
  border-color: #ddd;
}

.terms-buttons .btn-secondary:hover {
  background: #f5f5f5;
  border-color: #bbb;
  color: #333;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Shake animation for when user clicks outside modal */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
  20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes modalSlideIn {
  from { 
    opacity: 0; 
    transform: translateY(-20px) scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

/* Mobile responsive adjustments for terms modal */
@media (max-width: 600px) {
  .loophole-terms-modal-content {
    width: 95%;
    margin: 20px;
    padding: 24px;
  }
  
  .terms-links {
    gap: 10px;
    padding: 16px;
    margin-bottom: 24px;
  }
  
  .terms-link {
    padding: 12px 14px;
    font-size: 14px;
    gap: 10px;
  }
  
  .terms-checkbox-container {
    padding: 16px;
    margin-bottom: 24px;
  }
  
  .terms-checkbox-text {
    font-size: 14px;
  }
  
  .terms-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .terms-buttons .btn {
    padding: 16px 20px;
  }
  
  .terms-message {
    font-size: 15px;
    margin-bottom: 20px;
  }
  
  .loophole-modal-header h3 {
    font-size: 20px;
  }
}

/* Resume Intake Widget Styles */
.resume-intake-widget {
  margin-top: 10px;
  margin-bottom: 16px;
  padding: 10px 18px;
  background: #f8f9ff;
  border: 1px solid #e1e5ff;
  border-radius: 8px;
  animation: slideInFromTop 0.3s ease-out;
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.resume-intake-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.resume-label {
  font-size: 14px;
  font-weight: 400;
  color: #333;
  flex-shrink: 0;
}

.resume-text-clickable {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #4353ff;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 150px;
  transition: all 0.2s ease;
}

.resume-text-clickable:hover {
  color: #3a47e6;
  text-decoration: underline;
}

.resume-nav-btn {
  background: white;
  color: #666;
  border: 1px solid #ddd;
  padding: 6px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.resume-nav-btn:hover {
  background: #f5f5f5;
  border-color: #999;
  transform: translateY(-1px);
}

.resume-nav-btn:active {
  transform: translateY(0);
}

.resume-nav-btn svg {
  width: 16px;
  height: 16px;
}

/* Mobile responsive adjustments for resume widget */
@media (max-width: 600px) {
  .resume-intake-widget {
    padding: 10px 14px;
  }
  
  .resume-intake-content {
    gap: 6px;
  }
  
  .resume-label {
    font-size: 12px;
    display: none;
  }
  
  .resume-text-clickable {
    font-size: 12px;
    min-width: 100px;
    text-align: center;
  }
  
  .resume-nav-btn {
    width: 26px;
    height: 26px;
  }
  
  /* No hover effects on mobile */
  .resume-text-clickable:hover,
  .resume-nav-btn:hover {
    transform: none;
    text-decoration: none;
  }
}