/* =========================================================
   TUMUGI Contact Page Styles
   =======================================================*/

/* ===== Contact Header ===== */
.contact-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  transition: color 0.3s ease;
  font-weight: var(--fw-medium);
}

.back-link:hover {
  color: var(--brand);
}

/* ===== Contact Hero ===== */
.contact-hero {
  background: linear-gradient(135deg, 
    color-mix(in oklab, var(--brand) 8%, var(--bg)) 0%,
    color-mix(in oklab, var(--brand-2) 5%, var(--surface)) 100%
  );
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.contact-hero-inner h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: var(--fw-bold);
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.contact-hero .hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255,255,255,0.9);
  font-weight: var(--fw-medium);
}

/* ===== Contact Main ===== */
.contact-main {
  padding: 60px 0;
  background: linear-gradient(180deg, 
    var(--bg) 0%, 
    color-mix(in oklab, var(--brand) 3%, var(--bg)) 100%
  );
  min-height: 60vh;
}

.contact-intro {
  text-align: center;
  margin-bottom: 48px;
}

.contact-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}

.contact-intro .note {
  font-size: 14px;
  color: var(--brand);
  font-weight: var(--fw-medium);
}

/* ===== Contact Form ===== */
.contact-form-wrapper {
  max-width: 720px;
  margin: 0 auto 60px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-1);
}

.contact-form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.95);
  font-weight: var(--fw-medium);
  font-size: 14px;
  letter-spacing: 0.03em;
  min-height: 22px;
}

.form-group .required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 2px 8px;
  background: rgba(255,107,107,0.15);
  color: var(--danger);
  font-size: 11px;
  border-radius: 4px;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(90,200,250,0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  height: 46px;
  box-sizing: border-box;
}

.form-group textarea {
  height: auto;
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a8b2c3' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--surface-2);
  color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255,255,255,0.08);
  border-color: var(--brand);
  box-shadow: 0 0 20px rgba(90,200,250,0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(168,178,195,0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

/* Checkbox */
.checkbox-group {
  margin: 32px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  cursor: pointer;
}

.privacy-link {
  color: var(--brand);
  text-decoration: underline;
  margin: 0 4px;
}

.privacy-link:hover {
  color: color-mix(in oklab, var(--brand) 80%, #fff);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.btn-secondary {
  padding: 12px 28px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--muted);
  color: #fff;
}

/* Form Message */
.form-message {
  margin-top: 24px;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.form-message.success {
  background: rgba(57,217,138,0.1);
  border: 1px solid rgba(57,217,138,0.4);
  color: var(--ok);
}

.form-message.error {
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.4);
  color: var(--danger);
}

.form-message.info {
  background: rgba(90,200,250,0.1);
  border: 1px solid rgba(90,200,250,0.4);
  color: var(--brand);
}

/* ===== Company Info ===== */
.company-info {
  max-width: 600px;
  margin: 60px auto 0;
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, 
    rgba(90,200,250,0.03), 
    rgba(79,124,255,0.05)
  );
  border-radius: var(--radius-lg);
  border: 1px solid rgba(90,200,250,0.2);
}

.company-info h2 {
  font-size: 20px;
  margin-bottom: 24px;
  color: var(--brand);
  font-weight: var(--fw-semibold);
}

.company-details {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
}

.company-logo {
  width: 150px;
  height: auto;
}

.company-text h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #fff;
}

.company-text p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.company-text .links a {
  color: var(--brand);
  font-size: 14px;
  line-height: 1.8;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 24px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-secondary,
  .btn-primary {
    width: 100%;
  }
  
  .company-details {
    flex-direction: column;
    gap: 20px;
  }
  
  .company-logo {
    width: 120px;
  }
}

@media (max-width: 520px) {
  .contact-hero {
    padding: 40px 0 30px;
  }
  
  .contact-hero-inner h1 {
    font-size: 24px;
  }
  
  .contact-main {
    padding: 40px 0;
  }
  
  .contact-form-wrapper {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}