/* ===== Shared Service Page Styles ===== */
/* Imports main site variables via the parent stylesheet */

/* Service Hero */
.service-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  padding: 140px 0 60px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0,184,148,0.1) 0%, transparent 50%);
}
.service-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: 0.88rem; opacity: 0.7; margin-bottom: 16px; }
.breadcrumb a { color: var(--white); opacity: 0.8; transition: var(--transition); }
.breadcrumb a:hover { opacity: 1; }
.service-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900; margin-bottom: 16px; line-height: 1.2; }
.service-hero p { font-size: 1.15rem; opacity: 0.85; max-width: 640px; line-height: 1.7; }
.service-hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

/* Content Sections */
.svc-section { padding: 80px 0; }
.svc-section.alt { background: var(--bg-light); }
.svc-section h2 { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 20px; }
.svc-section h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 12px; }
.svc-section p { color: var(--text-light); font-size: 1rem; line-height: 1.7; margin-bottom: 16px; }

/* Overview Grid */
.overview-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.overview-sidebar { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.overview-sidebar h3 { font-size: 1rem; margin-bottom: 16px; }
.sidebar-stat { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.sidebar-stat:last-child { border-bottom: none; }
.sidebar-stat span:last-child { font-weight: 700; color: var(--primary); }

/* Included List */
.included-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.included-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: var(--transition); }
.included-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.included-check { width: 28px; height: 28px; background: rgba(0,184,148,0.1); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.included-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.included-item p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 0; }

/* Document Checklist */
.doc-checklist { max-width: 700px; }
.doc-progress { margin-bottom: 20px; }
.doc-progress-bar { height: 8px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.doc-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 4px; transition: width 0.4s ease; width: 0%; }
.doc-progress-text { font-size: 0.88rem; color: var(--text-muted); }
.doc-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer; transition: var(--transition); }
.doc-item:hover { border-color: var(--primary-light); background: var(--bg-light); }
.doc-item.checked { border-color: var(--accent); background: rgba(0,184,148,0.04); }
.doc-item input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.doc-item label { cursor: pointer; font-size: 0.95rem; flex: 1; }
.doc-item .doc-note { font-size: 0.82rem; color: var(--text-muted); display: block; margin-top: 2px; }

/* Timeline */
.timeline { position: relative; max-width: 700px; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--accent), var(--primary)); border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -33px; width: 28px; height: 28px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 800; font-size: 0.75rem; border: 3px solid var(--white); box-shadow: 0 0 0 3px var(--accent); }
.timeline-item h4 { font-size: 1.05rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.timeline-item p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 0; }
.timeline-time { display: inline-block; background: var(--bg-alt); padding: 2px 10px; border-radius: 4px; font-size: 0.82rem; font-weight: 600; color: var(--primary); margin-top: 6px; }

/* Fees Table */
.fees-wrapper { max-width: 600px; }
.fees-table { width: 100%; border-collapse: collapse; }
.fees-table th { text-align: left; padding: 12px 16px; background: var(--primary); color: var(--white); font-size: 0.88rem; }
.fees-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.fees-table td:last-child { text-align: right; font-weight: 600; color: var(--primary); }
.fees-table tr:last-child td { border-bottom: none; }
.fees-total { display: flex; justify-content: space-between; padding: 14px 16px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--white); border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 700; }
.fees-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 12px; }

/* Service FAQ */
.svc-faq { max-width: 700px; }

/* Service CTA */
.svc-cta { padding: 80px 0; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); text-align: center; color: var(--white); }
.svc-cta h2 { color: var(--white); margin-bottom: 16px; }
.svc-cta p { color: rgba(255,255,255,0.8); max-width: 500px; margin: 0 auto 28px; }
.svc-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== ATS Checker (Resume page only) ===== */
.ats-checker { max-width: 900px; margin: 0 auto; }
.ats-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.ats-input-group { text-align: left; }
.ats-input-group label { display: block; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; font-size: 0.95rem; }
.ats-input-group textarea {
  width: 100%; height: 240px; padding: 16px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 0.92rem;
  resize: vertical; outline: none; transition: var(--transition);
}
.ats-input-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,184,148,0.1); }
.ats-input-group textarea::placeholder { color: var(--text-muted); }
.ats-analyze-btn { margin-bottom: 32px; }

/* ATS Results */
.ats-results { display: none; }
.ats-results.visible { display: block; }

.ats-score-header { display: flex; align-items: center; gap: 32px; margin-bottom: 32px; padding: 28px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.ats-score-ring { width: 120px; height: 120px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.ats-score-ring.excellent { background: linear-gradient(135deg, #00b894, #00d4aa); color: var(--white); }
.ats-score-ring.good { background: linear-gradient(135deg, #27ae60, #2ecc71); color: var(--white); }
.ats-score-ring.fair { background: linear-gradient(135deg, #f39c12, #fdcb6e); color: var(--white); }
.ats-score-ring.poor { background: linear-gradient(135deg, #e74c3c, #ff6b6b); color: var(--white); }
.ats-score-num { font-size: 2.5rem; font-weight: 900; line-height: 1; }
.ats-score-of { font-size: 0.85rem; opacity: 0.8; }
.ats-score-info h3 { font-size: 1.3rem; margin-bottom: 6px; }
.ats-score-info p { margin-bottom: 0; }

.ats-details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 28px; }
.ats-detail-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; }
.ats-detail-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.ats-detail-card .status-pass { color: var(--accent); }
.ats-detail-card .status-warn { color: #f39c12; }
.ats-detail-card .status-fail { color: #e74c3c; }
.ats-detail-card p, .ats-detail-card ul { font-size: 0.9rem; color: var(--text-light); }
.ats-detail-card ul { padding-left: 18px; list-style: disc; }
.ats-detail-card li { margin-bottom: 4px; }

.ats-keywords { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ats-keyword { padding: 3px 10px; border-radius: 4px; font-size: 0.82rem; font-weight: 600; }
.ats-keyword.found { background: rgba(0,184,148,0.1); color: var(--accent-dark); }
.ats-keyword.missing { background: rgba(231,76,60,0.1); color: #e74c3c; }

.ats-tips { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.ats-tips h4 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 12px; }
.ats-tips ul { padding-left: 18px; list-style: disc; }
.ats-tips li { font-size: 0.92rem; color: var(--text-light); margin-bottom: 8px; }

/* PDF Upload Zone */
.pdf-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  margin-bottom: 8px;
}
.pdf-upload-zone:hover, .pdf-upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(0,184,148,0.04);
}
.pdf-upload-zone.uploaded {
  border-color: var(--accent);
  border-style: solid;
}
.pdf-upload-icon { font-size: 2.5rem; margin-bottom: 8px; }
.pdf-upload-title { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.pdf-upload-hint { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }
.pdf-browse-link { color: var(--accent); font-weight: 600; text-decoration: underline; }
.pdf-upload-info {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 12px;
}
.pdf-upload-info.success { background: rgba(0,184,148,0.08); color: #00796b; }
.pdf-upload-info.error { background: rgba(231,76,60,0.08); color: #c0392b; }
.pdf-upload-info.loading { background: var(--bg-light); color: var(--text-light); }

.ats-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}
.ats-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--border);
}
.ats-divider span {
  position: relative;
  background: var(--bg-light);
  padding: 0 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .overview-grid { grid-template-columns: 1fr; }
  .included-grid { grid-template-columns: 1fr; }
  .ats-inputs { grid-template-columns: 1fr; }
  .ats-score-header { flex-direction: column; text-align: center; }
  .ats-details-grid { grid-template-columns: 1fr; }
  .service-hero-actions { flex-direction: column; }
  .service-hero-actions .btn { width: 100%; }
  .svc-cta-actions { flex-direction: column; align-items: center; }
}
