/* Format Checker Landing Pages — Shared Upload / Loader Styles */

/* Widen the hero text container so the upload card fits without overflowing */
.writing_pro_resumes {
  max-width: 680px;
}

/* Make the abovefold wrapper a normal block so the upload card stays in flow */
.abovefold-image {
  display: block;
  width: 100%;
  min-width: auto;
  margin-top: 20px;
  margin-bottom: 20px;
}

.upload-interface {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin: 20px auto 0;
  max-width: 600px;
  width: 100%;
}

.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  border: 2px dashed #3bbdad;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8fffe;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.upload-box:hover,
.upload-box.dragover {
  background: #e8f5f3;
  border-color: #2fa89a;
}

.upload-icon-green {
  font-size: 3rem;
  color: #3bbdad;
  margin-bottom: 15px;
}

.upload-box h3 {
  font-size: 1.2rem;
  color: #1a1a1a;
  margin-bottom: 8px;
  font-weight: 600;
}

.upload-box p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.custom-file-input,
.upload-interface .custom-file-input {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: block;
}

/* Primary CTA button: matches salary-insights-report styling and aligns flush with textarea */
.fc-btn-main {
  font-family: "Inter Tight", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 8px;
  color: #fff;
  background: #3bbdad;
  border: none;
  font-size: 18px;
  font-weight: 600;
  padding: 14px 20px;
  margin: 14px 0 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fc-btn-main:hover,
.fc-btn-main:focus {
  background: #2fa89a;
  transform: translateY(-2px);
  outline: none;
}

.fc-btn-main i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.or-section {
  display: flex;
  align-items: center;
  margin: 20px 0;
  text-align: center;
}

.or-section hr {
  flex: 1;
  border: none;
  border-top: 1px solid #ddd;
  margin: 0 10px;
}

.or-section span {
  color: #888;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.paste-area textarea {
  width: 100%;
  min-height: 120px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.paste-area textarea:focus {
  outline: none;
  border-color: #3bbdad;
  box-shadow: 0 0 0 3px rgba(59, 189, 173, 0.1);
}

.salary-loader {
  padding: 30px 20px;
}

.loader-icon-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #3bbdad 0%, #2fa89a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.loader-icon-container i {
  font-size: 2rem;
  color: #fff;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.loader-step-indicator {
  margin-bottom: 15px;
}

.loader-step-indicator span {
  font-size: 0.85rem;
  color: #888;
  font-weight: 600;
}

.progress-bar-container {
  max-width: 300px;
  margin: 0 auto 20px;
}

.progress-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3bbdad 0%, #2fa89a 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.loading-text {
  display: block;
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
}

.tidbits-container {
  max-width: 500px;
  margin: 15px auto 0;
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #3bbdad;
}

.tidbits-text {
  font-size: 1rem;
  color: #555;
  font-style: italic;
  line-height: 1.5;
}

.error-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  max-width: 400px;
  margin: 0 auto;
}

.error-card h3 {
  color: #333;
  margin-bottom: 10px;
}

.error-card p {
  color: #666;
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  .writing_pro_resumes {
    max-width: 100%;
  }
  .upload-interface {
    padding: 20px;
  }
  .upload-box {
    padding: 30px 20px;
  }
  .fc-btn-main {
    font-size: 16px;
    padding: 12px 16px;
  }
}
