/* ============================================
   Contact Page Styles
   ============================================ */

.contact-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ---- Hero ---- */
.contact-hero {
  text-align: center;
  padding: 48px 0 40px;
}
.contact-hero h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}
.contact-hero p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto;
}
.contact-hero .hero-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}

/* ---- Section ---- */
.contact-section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.contact-section:first-of-type {
  border-top: none;
}
.section-label {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ---- Cooperation Type Cards ---- */
.coop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.coop-card {
  cursor: pointer;
  display: block;
}
.coop-card input[type="radio"] {
  display: none;
}
.coop-card-inner {
  padding: 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all 0.2s;
  height: 100%;
}
.coop-card:hover .coop-card-inner {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.coop-card input:checked + .coop-card-inner {
  border-color: var(--accent);
  background: var(--accent-light);
}
.coop-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}
.coop-card-inner h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.coop-card-inner p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}
.coop-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

/* ---- Form ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.required {
  color: #dc2626;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
  background: var(--surface);
  color: var(--text);
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

/* ---- Budget Pills ---- */
.budget-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.budget-pill {
  cursor: pointer;
}
.budget-pill input { display: none; }
.budget-pill span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.budget-pill:hover span {
  border-color: var(--accent);
  color: var(--accent);
}
.budget-pill input:checked + span {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---- Submit Button ---- */
.btn-submit {
  align-self: flex-start;
  padding: 14px 32px;
  font-size: 15px;
}
.form-hint {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---- Form Messages ---- */
.form-msg {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.6;
}
.msg-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.msg-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* ---- Spinner ---- */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Direct Contact ---- */
.direct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.direct-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
}
.direct-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.direct-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.direct-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.direct-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---- Process Flow ---- */
.process-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.process-step {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 20px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.process-step h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.process-step p {
  font-size: 12px;
  color: var(--text-light);
}
.process-arrow {
  font-size: 20px;
  color: var(--text-light);
  flex-shrink: 0;
}

/* ---- QR Code Cards ---- */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.qr-card {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all 0.25s ease;
}
.qr-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.qr-image-wrap {
  width: 160px;
  height: 160px;
  margin: 0 auto 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qr-image-wrap.qr-placeholder img { display: none; }
.qr-placeholder-text {
  display: none;
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  line-height: 1.6;
  padding: 12px;
}
.qr-image-wrap.qr-placeholder .qr-placeholder-text { display: block; }
.qr-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.qr-card p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .contact-main { padding: 0 16px 60px; }
  .contact-hero h1 { font-size: 24px; }
  .form-row-grid { grid-template-columns: 1fr; }
  .coop-grid { grid-template-columns: 1fr; }
  .direct-grid { grid-template-columns: 1fr; }
  .qr-grid { grid-template-columns: 1fr; }
  .process-flow { flex-direction: column; }
  .process-arrow { transform: rotate(90deg); }
  .process-step { width: 100%; }
  .btn-submit { align-self: stretch; text-align: center; justify-content: center; }
}
