/* Property Search Pro Styles */
.psp-property-search {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.psp-search-form {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  background-size: 200% 200%;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(5, 150, 105, 0.1);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.psp-search-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  z-index: 1;
}

.psp-search-form > * {
  position: relative;
  z-index: 2;
}

.psp-header {
  text-align: center;
  margin-bottom: 24px;
}

.psp-title {
  color: white;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.psp-icon {
  font-size: 32px;
}

.psp-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

.psp-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.psp-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.psp-input-wrapper {
  flex: 1;
  position: relative;
  min-width: 300px;
}

.psp-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  z-index: 3;
}

.psp-search-input {
  width: 100%;
  height: 56px;
  padding: 0 20px 0 50px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.psp-search-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  background: white;
}

.psp-search-btn {
  height: 56px;
  padding: 0 32px;
  background: white;
  color: #059669;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.psp-search-btn:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.psp-search-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.psp-btn-icon {
  font-size: 18px;
}

.psp-default-location {
  text-align: center;
}

.psp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* Modal Styles */
.psp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.psp-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 1400px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.psp-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid #e5e7eb;
}

.psp-modal-title {
  color: #059669;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.psp-modal-close {
  font-size: 28px;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s ease;
}

.psp-modal-close:hover {
  color: #374151;
}

/* Loading Styles */
.psp-loading {
  padding: 48px 32px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  text-align: center;
}

.psp-loading-header {
  text-align: center;
  margin-bottom: 40px;
}

.psp-search-animation {
  font-size: 48px;
  display: inline-block;
  animation: searchPulse 2s infinite;
}

@keyframes searchPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.psp-loading-header h4 {
  color: #1f2937;
  font-size: 24px;
  font-weight: 700;
  margin: 16px 0 8px 0;
}

.psp-loading-header p {
  color: #6b7280;
  font-size: 16px;
  margin: 0;
}

/* New main progress bar at top */
.psp-main-progress {
  max-width: 600px;
  margin: 0 auto 40px;
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.psp-progress-bar-container {
  width: 100%;
}

.psp-progress-bar {
  height: 12px;
  background: #f3f4f6;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.psp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #059669, #10b981);
  border-radius: 6px;
  transition: width 0.8s ease;
  width: 0%;
  position: relative;
}

.psp-progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.psp-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

#psp-progress-percentage {
  color: #059669;
  font-weight: 700;
  font-size: 16px;
}

#psp-progress-time {
  color: #6b7280;
  font-weight: 500;
}

/* New vertical progress steps container */
.psp-progress-steps-container {
  max-width: 600px;
  margin: 0 auto 40px;
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.psp-progress-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.psp-progress-step:last-child {
  border-bottom: none;
}

.psp-progress-step.active {
  opacity: 1;
  background: rgba(5, 150, 105, 0.05);
  border-radius: 12px;
  padding: 20px 16px;
  margin: 0 -16px;
}

.psp-progress-step.completed {
  opacity: 1;
}

/* Step icon with loader and checkmark */
.psp-step-icon {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.psp-step-loader {
  width: 48px;
  height: 48px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #059669;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.psp-progress-step.active .psp-step-loader {
  opacity: 1;
}

.psp-step-check {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: bold;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.psp-progress-step.completed .psp-step-check {
  opacity: 1;
  transform: scale(1);
}

.psp-progress-step.completed .psp-step-loader {
  opacity: 0;
}

/* New list-based progress steps */
.psp-steps-list {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.psp-step-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.4s ease;
  opacity: 0.4;
}

.psp-step-item:last-child {
  border-bottom: none;
}

.psp-step-item.active {
  opacity: 1;
  background: rgba(5, 150, 105, 0.05);
  border-radius: 12px;
  padding: 20px 16px;
  margin: 0 -16px;
  transform: scale(1.02);
}

.psp-step-item.completed {
  opacity: 1;
}

/* Step indicator with spinner and checkmark */
.psp-step-indicator {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.psp-step-loader {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.psp-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #059669;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.psp-step-item.active .psp-step-loader {
  opacity: 1;
}

.psp-step-check {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: bold;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.psp-step-item.completed .psp-step-check {
  opacity: 1;
  transform: scale(1);
}

.psp-step-item.completed .psp-step-loader {
  opacity: 0;
}

/* Step details styling */
.psp-step-details {
  flex: 1;
}

.psp-step-details h5 {
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px 0;
  transition: color 0.3s ease;
}

.psp-step-details p {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.psp-step-item.active .psp-step-details h5 {
  color: #059669;
}

.psp-step-item.completed .psp-step-details h5 {
  color: #10b981;
}

/* Step status with timer */
.psp-step-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.psp-status-text {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f3f4f6;
  color: #9ca3af;
  transition: all 0.3s ease;
}

.psp-step-item.active .psp-status-text {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}

.psp-step-item.completed .psp-status-text {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.psp-step-timer {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
  padding: 2px 8px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.psp-step-item.active .psp-step-timer {
  opacity: 1;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Results Styles */
.psp-results {
  padding: 32px;
}

.psp-property-header {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.psp-property-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.psp-property-address h2 {
  color: #059669;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.psp-property-address p {
  color: #6b7280;
  font-size: 18px;
  margin: 0 0 12px 0;
}

.psp-property-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.psp-badge-outline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid #059669;
  color: #059669;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.psp-property-value {
  text-align: right;
}

.psp-property-value .price {
  font-size: 36px;
  font-weight: 700;
  color: #059669;
  margin: 0;
}

.psp-property-value .price-label {
  font-size: 14px;
  color: #6b7280;
  margin: 4px 0 0 0;
}

.psp-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.psp-detail-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow 0.3s ease;
}

.psp-detail-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.psp-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.psp-card-title {
  color: #059669;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.psp-card-icon {
  font-size: 20px;
}

.psp-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.psp-detail-row:last-child {
  border-bottom: none;
}

.psp-detail-label {
  color: #6b7280;
  font-size: 14px;
}

.psp-detail-value {
  color: #374151;
  font-weight: 600;
  font-size: 14px;
}

.psp-action-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.psp-btn {
  flex: 1;
  min-width: 200px;
  height: 48px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.psp-btn-primary {
  background: #059669;
  color: white;
}

.psp-btn-primary:hover {
  background: #047857;
  transform: translateY(-2px);
}

.psp-btn-outline {
  background: transparent;
  color: #059669;
  border: 1px solid #059669;
}

.psp-btn-outline:hover {
  background: rgba(5, 150, 105, 0.1);
}

/* Google Sheets Tool Styles */
.psp-googlesheet-tool {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header Section */
.psp-googlesheet-tool .psp-search-form {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  border-radius: 24px;
  padding: 48px 32px;
  box-shadow: 0 20px 40px rgba(5, 150, 105, 0.2);
  position: relative;
  overflow: hidden;
}

.psp-googlesheet-tool .psp-search-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.psp-googlesheet-tool .psp-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 40px;
}

.psp-googlesheet-tool .psp-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.psp-googlesheet-tool .psp-icon-container {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.psp-googlesheet-tool .psp-icon-svg {
  width: 28px;
  height: 28px;
  color: white;
}

.psp-googlesheet-tool .psp-title {
  color: white;
  font-size: 32px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.5px;
}

.psp-googlesheet-tool .psp-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Search Input Section */
.psp-googlesheet-tool .psp-form-container {
  position: relative;
  z-index: 2;
}

.psp-googlesheet-tool .psp-search-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.psp-googlesheet-tool .psp-input-container {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: stretch;
  position: relative; /* Added for proper icon positioning */
}

.psp-googlesheet-tool .psp-search-input {
  flex: 1;
  height: 56px; /* Increased height for better mobile UX */
  padding: 0 24px 0 52px; /* Increased left padding for icon */
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  color: #1f2937;
}

.psp-googlesheet-tool .psp-search-input::placeholder {
  color: #6b7280;
  font-weight: 400;
}

.psp-googlesheet-tool .psp-search-input:focus {
  outline: none;
  border-color: white;
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.psp-googlesheet-tool .psp-input-icon {
  position: absolute;
  left: 20px;
  top: 28px; /* Adjusted for better centering with increased height */
  width: 24px;
  height: 24px;
  color: #10b981; /* Made icon more visible with green color */
  z-index: 3; /* Ensure icon appears above input */
}

.psp-googlesheet-tool .psp-search-btn {
  height: 56px; /* Match input height */
  padding: 0 32px;
  background: white;
  color: #059669;
  border: 3px solid white;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  min-width: 180px;
}

.psp-googlesheet-tool .psp-btn-icon {
  width: 20px;
  height: 20px;
}

.psp-googlesheet-tool .psp-search-btn:hover {
  background: #f0fdf4;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.psp-googlesheet-tool .psp-search-btn:active {
  transform: translateY(-1px);
}

.psp-googlesheet-tool .psp-location-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.psp-googlesheet-tool .psp-badge-icon {
  width: 16px;
  height: 16px;
}

/* Modal Styles */
.psp-googlesheet-tool .psp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.psp-googlesheet-tool .psp-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.psp-googlesheet-tool .psp-modal-content {
  background: white;
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 9;
}

.psp-googlesheet-tool .psp-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 40px;
  border-bottom: 1px solid #f3f4f6;
  position: relative; /* For close button positioning */
}

.psp-googlesheet-tool .psp-modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.psp-googlesheet-tool .psp-modal-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #059669, #10b981);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.psp-googlesheet-tool .psp-modal-icon svg {
  width: 24px;
  height: 24px;
}

.psp-googlesheet-tool .psp-modal-title {
  color: #1f2937;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.psp-googlesheet-tool .psp-modal-close {
  width: 40px; /* Increased size for better mobile touch */
  height: 40px;
  background: #ffffff;
  border: none;
  border-radius: 5%; /* Made circular for better visual appeal */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Added shadow for visibility */
  position: absolute; /* Ensure proper positioning */
  top: 16px;
  right: 16px;
  z-index: 10; /* Ensure it appears above other elements */
  /* color: black; */
  line-height: 1rm;
}

.psp-googlesheet-tool .psp-modal-close:hover {
  background: #f3f4f6;
  transform: scale(1.05); /* Slight scale effect on hover */
}

.psp-googlesheet-tool .psp-modal-close svg {
  width: 20px; /* Increased icon size */
  height: 20px;
  color: #374151; /* Darker color for better visibility */
}

/* Loading Section */
.psp-googlesheet-tool .psp-loading {
  padding: 40px;
}

.psp-googlesheet-tool .psp-loading-header {
  text-align: center;
  margin-bottom: 48px;
}

.psp-googlesheet-tool .psp-loading-animation {
  position: relative;
  width: 80px; /* Fixed size for mobile */
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.psp-googlesheet-tool .psp-search-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
  opacity: 0.6;
}

.psp-googlesheet-tool .psp-search-icon {
  width: 32px;
  height: 32px;
  color: #10b981;
  z-index: 2;
}

.psp-googlesheet-tool .psp-loading-header h4 {
  color: #1f2937;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.psp-googlesheet-tool .psp-loading-header p {
  color: #6b7280;
  font-size: 16px;
  margin: 0;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Progress Bar */
.psp-googlesheet-tool .psp-main-progress {
  max-width: 600px;
  margin: 0 auto 48px;
  background: #f9fafb;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid #f3f4f6;
}

.psp-googlesheet-tool .psp-progress-container {
  width: 100%;
}

.psp-googlesheet-tool .psp-progress-bar {
  height: 16px;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.psp-googlesheet-tool .psp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #059669, #10b981);
  border-radius: 8px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  position: relative;
}

.psp-googlesheet-tool .psp-progress-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine 2s infinite;
}

.psp-googlesheet-tool .psp-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.psp-googlesheet-tool .psp-progress-percentage {
  color: #059669;
  font-weight: 700;
  font-size: 18px;
}

.psp-googlesheet-tool .psp-progress-time {
  color: #6b7280;
  font-weight: 500;
  font-size: 14px;
}

/* Progress Steps */
.psp-googlesheet-tool .psp-steps-container {
  max-width: 700px;
  margin: 0 auto;
}

.psp-googlesheet-tool .psp-step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  margin-bottom: 16px;
  background: #f9fafb;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
}

.psp-googlesheet-tool .psp-step-item:last-child {
  margin-bottom: 0;
}

.psp-googlesheet-tool .psp-step-item.active {
  opacity: 1;
  background: rgba(5, 150, 105, 0.05);
  border-color: #10b981;
  transform: scale(1.02);
}

.psp-googlesheet-tool .psp-step-item.completed {
  opacity: 1;
  background: rgba(5, 150, 105, 0.1);
}

.psp-googlesheet-tool .psp-step-indicator {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.psp-googlesheet-tool .psp-step-loader {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.psp-googlesheet-tool .psp-step-item.active .psp-step-loader {
  opacity: 1;
}

.psp-googlesheet-tool .psp-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #059669;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.psp-googlesheet-tool .psp-step-check {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  background: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.psp-googlesheet-tool .psp-step-check svg {
  width: 24px;
  height: 24px;
}

.psp-googlesheet-tool .psp-step-item.completed .psp-step-check {
  opacity: 1;
  transform: scale(1);
}

.psp-googlesheet-tool .psp-step-item.completed .psp-step-loader {
  opacity: 0;
}

.psp-googlesheet-tool .psp-step-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.psp-googlesheet-tool .psp-step-details h5 {
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  transition: color 0.3s ease;
}

.psp-googlesheet-tool .psp-step-details p {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.psp-googlesheet-tool .psp-step-item.active .psp-step-details h5 {
  color: #059669;
}

.psp-googlesheet-tool .psp-step-item.completed .psp-step-details h5 {
  color: #059669;
}

.psp-googlesheet-tool .psp-step-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.psp-googlesheet-tool .psp-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #e5e7eb;
  color: #6b7280;
  transition: all 0.3s ease;
}

.psp-googlesheet-tool .psp-step-item.active .psp-status-badge {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}

.psp-googlesheet-tool .psp-step-item.completed .psp-status-badge {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}

.psp-googlesheet-tool .psp-step-timer {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

/* Form Success Header */
.psp-googlesheet-tool .psp-form-success-header {
  text-align: center;
  padding: 8px 4px 22px;
  border-bottom: 1px solid #f3f4f6;
}

.psp-googlesheet-tool .psp-success-animation {
  margin-bottom: 24px;
}

.psp-googlesheet-tool .psp-success-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #059669, #10b981);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: successPulse 0.6s ease-out;
  box-shadow: 0 8px 32px rgba(5, 150, 105, 0.3);
}

.psp-googlesheet-tool .psp-success-icon {
  width: 40px;
  height: 40px;
  color: white;
}

.psp-googlesheet-tool .psp-success-title {
  color: #1f2937;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.psp-googlesheet-tool .psp-success-description {
  color: #6b7280;
  font-size: 16px;
  margin: 0;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Contact Form */
.psp-googlesheet-tool .psp-contact-form {
  padding: 8px;
}

.psp-googlesheet-tool .psp-form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.psp-googlesheet-tool .psp-form-group {
  display: flex;
  flex-direction: column;
}

.psp-googlesheet-tool .psp-form-group-full {
  grid-column: 1 / -1;
}

.psp-googlesheet-tool .psp-form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.psp-googlesheet-tool .psp-label-icon {
  width: 16px;
  height: 16px;
  color: #059669;
}

.psp-googlesheet-tool .psp-form-input,
.psp-googlesheet-tool .psp-form-select,
.psp-googlesheet-tool .psp-form-textarea {
  height: 56px;
  padding: 0 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  background: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #1f2937;
}

.psp-googlesheet-tool .psp-form-textarea {
  height: auto;
  padding: 16px;
  resize: vertical;
  min-height: 100px;
}

.psp-googlesheet-tool .psp-form-input:focus,
.psp-googlesheet-tool .psp-form-select:focus,
.psp-googlesheet-tool .psp-form-textarea:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
  transform: translateY(-1px);
}

.psp-googlesheet-tool .psp-select-wrapper {
  position: relative;
}

.psp-googlesheet-tool .psp-select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #6b7280;
  pointer-events: none;
}

/* Form Footer */
.psp-googlesheet-tool .psp-form-footer {
  border-top: 1px solid #f3f4f6;
  padding-top: 32px;
}

.psp-googlesheet-tool .psp-trust-indicators {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.psp-googlesheet-tool .psp-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
}

.psp-googlesheet-tool .psp-trust-icon {
  width: 20px;
  height: 20px;
  color: #059669;
}

.psp-googlesheet-tool .psp-submit-btn {
  width: 100%;
  height: 64px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.2);
}

.psp-googlesheet-tool .psp-submit-btn:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.3);
}

.psp-googlesheet-tool .psp-submit-btn:active {
  transform: translateY(0);
}

.psp-googlesheet-tool .psp-submit-btn svg {
  width: 20px;
  height: 20px;
}

/* Lead Form Modal Styles */
.psp-lead-form-container {
  padding: 32px;
  background: white;
}

.psp-form-header {
  text-align: center;
  margin-bottom: 32px;
}

.psp-success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.psp-form-header h3 {
  color: #1f2937;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.psp-form-header p {
  color: #6b7280;
  font-size: 16px;
  margin: 0;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

.psp-contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.psp-form-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.psp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.psp-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.psp-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.psp-label-icon {
  font-size: 16px;
}

.psp-form-input,
.psp-form-select,
.psp-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.psp-form-input:focus,
.psp-form-select:focus,
.psp-form-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 246, 0.1);
}

.psp-form-textarea {
  resize: vertical;
  min-height: 80px;
}

.psp-form-actions {
  margin-top: 32px;
  text-align: center;
}

.psp-trust-indicators {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.psp-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #6b7280;
}

.psp-trust-icon {
  font-size: 16px;
}

.psp-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.psp-submit-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.psp-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.psp-btn-text {
  font-weight: 600;
}

.psp-btn-icon {
  font-size: 18px;
}

/* Loading Overlay */
.psp-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.psp-loading-content {
  text-align: center;
  color: white;
}

.psp-spinner-large {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

/* Mobile Responsive Design - Professional UI/UX Optimization */
@media (max-width: 768px) {
  .psp-property-search {
    padding: 12px;
  }

  /* Main search form mobile optimization */
  .psp-googlesheet-tool .psp-search-form {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .psp-googlesheet-tool .psp-title {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .psp-googlesheet-tool .psp-description {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 20px;
  }

  /* Enhanced search input and button layout */
  .psp-googlesheet-tool .psp-search-wrapper {
    gap: 16px;
  }

  .psp-googlesheet-tool .psp-input-container {
    flex-direction: column;
    gap: 12px;
    position: relative; /* Added for proper icon positioning */
  }

  .psp-googlesheet-tool .psp-search-input {
    width: 100%;
    height: auto; /* Increased height for better mobile UX */
    padding: 0 24px 0 52px; /* Increased left padding for icon */
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    color: #1f2937;
  }

  .psp-googlesheet-tool .psp-search-input::placeholder {
    color: #6b7280;
    font-weight: 400;
  }

  .psp-googlesheet-tool .psp-search-input:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
  }

  .psp-googlesheet-tool .psp-input-icon {
    position: absolute;
    left: 20px;
    top: 18px; /* Adjusted for better centering with increased height */
    width: 24px;
    height: 24px;
    color: #10b981; /* Made icon more visible with green color */
    z-index: 3; /* Ensure icon appears above input */
  }

  /* Enhanced search button - make it clearly clickable */
  .psp-googlesheet-tool .psp-search-btn {
    width: 100%;
    height: 36px; /* Match input height */
    background: white;
    color: #059669;
    border: 3px solid white;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    min-width: 180px;
  }

  .psp-googlesheet-tool .psp-search-btn:hover {
    background: #f0fdf4;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  }

  .psp-googlesheet-tool .psp-search-btn:active {
    transform: translateY(-1px);
  }

  .psp-googlesheet-tool .psp-btn-icon {
    width: 20px;
    height: 20px;
  }

  /* Modal mobile optimization - fit viewport without scrolling */
  .psp-googlesheet-tool .psp-modal {
    padding: 8px;
    align-items: flex-start;
    padding-top: 20px;
  }

  .psp-googlesheet-tool .psp-modal-content {
    width: 95%;
    max-width: 380px;
    max-height: 90vh; /* Ensure modal fits in viewport */
    overflow-y: auto; /* Allow internal scrolling if needed */
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 20px auto; /* Center with margin */
 z-index: 9;
  }

  /* Modal header with close button */
  .psp-googlesheet-tool .psp-modal-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
  }

  .psp-googlesheet-tool .psp-modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .psp-googlesheet-tool .psp-modal-icon {
    width: 24px;
    height: 24px;
    color: #10b981;
  }

  .psp-googlesheet-tool .psp-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
  }

  .psp-googlesheet-tool .psp-modal-close {
    width: 40px; /* Increased size for better mobile touch */
    height: 40px;
    background: #fff;
    border: none;
     /* Made circular for better visual appeal */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
     /* Added shadow for visibility */
    position: absolute; /* Ensure proper positioning */
    top: 16px;
    right: 16px;
    z-index: 10; /* Ensure it appears above other elements */
  }

  .psp-googlesheet-tool .psp-modal-close:hover {
    background: #f3f4f6;
    transform: scale(1.05); /* Slight scale effect on hover */
  }

  .psp-googlesheet-tool .psp-modal-close svg {
    width: 20px; /* Increased icon size */
    height: 20px;
    color: #374151; /* Darker color for better visibility */
  }

  /* Progress screen mobile optimization */
  .psp-googlesheet-tool .psp-loading {
    padding: 24px 20px;
  }

  .psp-googlesheet-tool .psp-loading-header {
    text-align: center;
    margin-bottom: 24px;
  }

  .psp-googlesheet-tool .psp-loading-animation {
    width: 80px; /* Fixed size for mobile */
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .psp-googlesheet-tool .psp-search-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0.6;
  }

  .psp-googlesheet-tool .psp-search-icon {
    width: 32px;
    height: 32px;
    color: #10b981;
    z-index: 2;
  }

  .psp-googlesheet-tool .psp-loading h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
  }

  .psp-googlesheet-tool .psp-loading p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
  }

  /* Compact progress bar */
  .psp-googlesheet-tool .psp-main-progress {
    margin-bottom: 24px;
  }

  .psp-googlesheet-tool .psp-progress-container {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 16px;
  }

  .psp-googlesheet-tool .psp-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
  }

  .psp-googlesheet-tool .psp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
  }

  .psp-googlesheet-tool .psp-progress-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
  }

  .psp-googlesheet-tool .psp-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .psp-googlesheet-tool .psp-progress-percentage {
    font-size: 16px;
    font-weight: 600;
    color: #10b981;
  }

  .psp-googlesheet-tool .psp-progress-time {
    font-size: 12px;
    color: #6b7280;
  }

  /* Optimized progress steps - no scrolling needed */
  .psp-googlesheet-tool .psp-steps-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .psp-googlesheet-tool .psp-step-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
  }

  .psp-googlesheet-tool .psp-step-item.active {
    background: #ecfdf5;
    border-color: #10b981;
  }

  .psp-googlesheet-tool .psp-step-item.completed {
    background: #ecfdf5;
    border-color: #10b981;
  }

  .psp-googlesheet-tool .psp-step-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
  }

  .psp-googlesheet-tool .psp-step-loader {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    border-top-color: #10b981;
    animation: spin 1s linear infinite;
    opacity: 0;
  }

  .psp-googlesheet-tool .psp-step-item.active .psp-step-loader {
    opacity: 1;
  }

  .psp-googlesheet-tool .psp-step-check {
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
  }

  .psp-googlesheet-tool .psp-step-item.completed .psp-step-check {
    opacity: 1;
    transform: scale(1);
  }

  .psp-googlesheet-tool .psp-step-check svg {
    width: 12px;
    height: 12px;
    color: white;
  }

  .psp-googlesheet-tool .psp-step-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .psp-googlesheet-tool .psp-step-details h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 2px 0;
  }

  .psp-googlesheet-tool .psp-step-details p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.3;
  }

  .psp-googlesheet-tool .psp-step-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }

  .psp-googlesheet-tool .psp-status-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .psp-googlesheet-tool .psp-status-badge.processing {
    background: #fef3c7;
    color: #d97706;
  }

  .psp-googlesheet-tool .psp-status-badge.complete {
    background: #d1fae5;
    color: #059669;
  }

  .psp-googlesheet-tool .psp-status-badge.waiting {
    background: #f3f4f6;
    color: #6b7280;
  }

  .psp-googlesheet-tool .psp-step-timer {
    font-size: 10px;
    color: #9ca3af;
  }

  /* Form mobile optimization - compact and attractive */
  .psp-googlesheet-tool .psp-results {
    padding: 24px 20px;
  }

  .psp-googlesheet-tool .psp-form-success-header {
    text-align: center;
    margin-bottom: 4px;
  }

  .psp-googlesheet-tool .psp-success-animation {
    margin-bottom: 16px;
  }

  .psp-googlesheet-tool .psp-success-circle {
    width: 60px;
    height: 60px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: successPulse 0.6s ease-out;
  }

  .psp-googlesheet-tool .psp-success-icon {
    width: 28px;
    height: 28px;
    color: white;
  }

  .psp-googlesheet-tool .psp-success-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
  }

  .psp-googlesheet-tool .psp-success-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
  }

  /* Mobile form grid - single column */
  .psp-googlesheet-tool .psp-form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
  }

  .psp-googlesheet-tool .psp-form-group {
    width: 100%;
  }

  .psp-googlesheet-tool .psp-form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
  }

  .psp-googlesheet-tool .psp-label-icon {
    width: 16px;
    height: 16px;
    color: #10b981;
  }

  .psp-googlesheet-tool .psp-form-input,
  .psp-googlesheet-tool .psp-form-select,
  .psp-googlesheet-tool .psp-form-textarea {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
  }

  .psp-googlesheet-tool .psp-form-textarea {
    height: auto;
    padding: 12px 16px;
    resize: vertical;
    min-height: 80px;
  }

  .psp-googlesheet-tool .psp-form-input:focus,
  .psp-googlesheet-tool .psp-form-select:focus,
  .psp-googlesheet-tool .psp-form-textarea:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    outline: none;
  }

  .psp-googlesheet-tool .psp-select-wrapper {
    position: relative;
  }

  .psp-googlesheet-tool .psp-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #6b7280;
    pointer-events: none;
  }

  /* Trust indicators mobile */
  .psp-googlesheet-tool .psp-trust-indicators {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    margin: 20px 0 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
  }

  .psp-googlesheet-tool .psp-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
  }

  .psp-googlesheet-tool .psp-trust-icon {
    width: 20px;
    height: 20px;
    color: #10b981;
    margin-bottom: 4px;
  }

  .psp-googlesheet-tool .psp-trust-item span {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
  }

  /* Submit button mobile */
  .psp-googlesheet-tool .psp-submit-btn {
    width: 100%;
    height: 56px;
    background: #059669;
    color: white;
    border: 3px solid white;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    min-width: 180px;
  }

  .psp-googlesheet-tool .psp-submit-btn:hover {
    background: #f0fdf4;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  }

  .psp-googlesheet-tool .psp-submit-btn:active {
    transform: translateY(-1px);
  }

  .psp-googlesheet-tool .psp-btn-icon {
    width: 18px;
    height: 18px;
  }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
  .psp-googlesheet-tool .psp-modal {
    padding: 4px;
    padding-top: 10px;
  }

  .psp-googlesheet-tool .psp-modal-content {
    max-height: calc(100vh - 20px);
    border-radius: 12px;
  }

  .psp-googlesheet-tool .psp-modal-header {
    padding: 12px;
  }

  .psp-googlesheet-tool .psp-modal-title {
    font-size: 16px;
  }

  .psp-googlesheet-tool .psp-loading,
  .psp-googlesheet-tool .psp-results {
    padding: 16px 12px;
  }

  .psp-googlesheet-tool .psp-success-title {
    font-size: 18px;
  }

  .psp-googlesheet-tool .psp-form-grid {
    gap: 14px;
  }

  .psp-googlesheet-tool .psp-trust-indicators {
    padding: 12px;
    margin: 16px 0 12px;
  }

  .psp-googlesheet-tool .psp-trust-item span {
    font-size: 10px;
  }
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
  100% {
    transform: scale(0.8);
    opacity: 1;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes successPulse {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Green theme variations for Google Sheets tool */
.psp-search-btn-green {
  background: white !important;
  color: #059669 !important;
  border: 2px solid white !important;
}

.psp-search-btn-green:hover {
  background: #f0fdf4 !important;
  color: #047857 !important;
}

.psp-badge-green {
  background: rgba(5, 150, 105, 0.1) !important;
  color: #059669 !important;
  border: 1px solid rgba(5, 150, 105, 0.2) !important;
}

.psp-progress-fill-green {
  background: linear-gradient(90deg, #059669, #10b981) !important;
}

.psp-spinner-green {
  border-color: #e5e7eb !important;
  border-top-color: #059669 !important;
}

.psp-step-item-green.active {
  background: rgba(5, 150, 105, 0.05) !important;
  border-left: 4px solid #059669 !important;
  padding-left: 20px !important;
}

.psp-step-item-green.completed .psp-step-check {
  background: #059669 !important;
  color: white !important;
}

.psp-step-item-green.active .psp-step-details h5 {
  color: #059669 !important;
}

.psp-step-item-green.completed .psp-step-details h5 {
  color: #059669 !important;
}

.psp-step-item-green.active .psp-status-text {
  background: rgba(5, 150, 105, 0.1) !important;
  color: #059669 !important;
}

.psp-step-item-green.completed .psp-status-text {
  background: rgba(5, 150, 105, 0.1) !important;
  color: #059669 !important;
}

.psp-submit-btn-green {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: white !important;
  border: none !important;
}

.psp-submit-btn-green:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3) !important;
}
