/* ==========================================================================
   Contact Page Stylesheet - Designed for Linyi Mincai Stationery
   Consistent Content Width & Clean Design
   ========================================================================== */

/* Color Tokens & Scoped Variables */
:root {
  --contact-orange: #ff621f;
  --contact-orange-hover: #ee500e;
  --contact-blue: #168cff;
  --contact-blue-hover: #0b7ae9;
  --contact-dark: #10264f;
  --contact-text-body: #6f7f96;
  --contact-text-muted: #8494ab;
  --contact-card-bg: #ffffff;
  --contact-border: #edf2f7;
  --contact-input-border: #e1e9f4;
}

/* Page Scaffolding */
.contact-page {
  position: relative;
  background: #f7fbff;
  color: var(--contact-text-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 70px;
}

/* Unified Content Width across all sections */
.contact-width {
  width: min(1480px, calc(100% - 64px));
  margin-inline: auto;
}

@media (min-width: 1680px) {
  .contact-width {
    width: min(1568px, calc(100% - 76px));
  }
}

/* Common Typography & Spark Accents */
.text-orange {
  color: var(--contact-orange);
}

.text-blue {
  color: var(--contact-blue);
}

/* Title Spark Accent Image (page-ico13.png) */
.title-spark-img {
  display: inline-block;
  vertical-align: top;
  object-fit: contain;
  pointer-events: none;
  flex-shrink: 0;
  width: clamp(24px, 2.5vw, 32px);
  height: clamp(24px, 2.5vw, 32px);
  margin-left: 6px;
  margin-top: -8px;
}

/* ==========================================================================
   1. Hero Banner Section - Single Image Banner
   ========================================================================== */
.contact-hero {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #bceeff 0%, #ddf3ff 68%, #ffffff 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.contact-banner-img {
  display: block;
  width: 100%;
  max-width: 1920px;
  height: auto;
  margin: 0 auto;
}

/* ==========================================================================
   2. "Let's Get in Touch" Intro Section
   ========================================================================== */
.contact-introduction {
  text-align: center;
  padding: 56px 20px 36px;
}

.contact-section-heading {
  font-family: "Fredoka", "Arial Rounded MT Bold", sans-serif;
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-intro-lead {
  margin: 0 auto;
  font-size: 16px;
  color: var(--contact-text-body);
  line-height: 1.65;
  max-width: 780px;
}

/* ==========================================================================
   3. 4 Contact Information Cards
   ========================================================================== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
}

.contact-info-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 22px 24px;
  background: var(--contact-card-bg);
  border: 1.5px solid var(--contact-border);
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(16, 38, 79, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(16, 38, 79, 0.08);
  border-color: #dbe7f5;
}

/* Rounded Squircle Icons matching design */
.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  flex-shrink: 0;
}

.contact-card-icon.orange {
  background: linear-gradient(135deg, #ff7e36 0%, #ff5722 100%);
  box-shadow: 0 6px 16px rgba(255, 87, 34, 0.28);
}

.contact-card-icon.pink {
  background: linear-gradient(135deg, #ff6599 0%, #f43f75 100%);
  box-shadow: 0 6px 16px rgba(244, 63, 117, 0.26);
}

.contact-card-icon.blue {
  background: linear-gradient(135deg, #2fa3ff 0%, #1377e8 100%);
  box-shadow: 0 6px 16px rgba(19, 119, 232, 0.26);
}

.contact-card-icon.green {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.26);
}

/* Card Body & Typography */
.contact-card-body {
  flex: 1;
  min-width: 0;
}

.contact-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--contact-dark);
  margin: 0 0 4px;
  line-height: 1.3;
}

.contact-card-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--contact-dark);
  line-height: 1.35;
  word-break: break-word;
  transition: color 0.2s ease;
}

a.contact-card-value:hover {
  color: var(--contact-orange);
}

.contact-card-meta-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--contact-dark);
  line-height: 1.45;
}

.contact-card-desc {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--contact-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   4. "Send Us a Message" Form Card
   ========================================================================== */
.contact-form-panel {
  position: relative;
  width: 100%;
  margin: 50px 0 0;
  padding: 44px 48px;
  background: #ffffff;
  border: 1.5px solid var(--contact-border);
  border-radius: 24px;
  box-shadow: 0 6px 24px rgba(16, 38, 79, 0.04);
  scroll-margin-top: 110px;
}

.contact-form-heading {
  font-family: "Fredoka", "Arial Rounded MT Bold", sans-serif;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.2;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-form-lead {
  font-size: 15.5px;
  color: var(--contact-text-body);
  margin: 0 0 28px;
  text-align: left;
}

/* Form Grid */
.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

/* Clean Input Fields with Inset Left Icons */
.contact-field {
  position: relative;
  width: 100%;
}

.form-field-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #7b8f9e;
  pointer-events: none;
  z-index: 2;
}

.form-icon-blue {
  color: var(--contact-blue);
}

.form-icon-textarea {
  top: 20px;
  transform: none;
}

/* Form Inputs & Select Styling */
.contact-field input,
.contact-field select {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 48px;
  border: 1.5px solid var(--contact-input-border);
  border-radius: 12px;
  outline: none;
  background: #ffffff;
  color: var(--contact-dark);
  font-family: inherit;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field textarea {
  width: 100%;
  min-height: 130px;
  padding: 16px 18px 16px 48px;
  border: 1.5px solid var(--contact-input-border);
  border-radius: 12px;
  outline: none;
  background: #ffffff;
  color: var(--contact-dark);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.55;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--contact-blue);
  box-shadow: 0 0 0 3px rgba(22, 140, 255, 0.12);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #8c9eb4;
  font-size: 14.5px;
}

/* Select Field Custom Chevron */
.contact-select-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 42px;
}

.contact-select-field select:invalid,
.contact-select-field select option[value=""] {
  color: #8c9eb4;
}

.contact-chevron-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #8c9eb4;
  font-size: 13px;
  pointer-events: none;
  z-index: 2;
}

/* Message Textarea Field */
.contact-message-field {
  grid-column: 1 / -1;
}

/* Clean CTA Submit Button matching design */
.contact-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  margin-top: 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, #ff7e36 0%, #ff5722 100%);
  color: #ffffff;
  font-size: 16.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 87, 34, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  user-select: none;
}

.contact-send-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff8947 0%, #ee4d1a 100%);
  box-shadow: 0 10px 24px rgba(255, 87, 34, 0.4);
}

.contact-send-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.25);
}

.contact-send-btn i {
  font-size: 15px;
  transition: transform 0.2s ease;
}

.contact-send-btn:hover i {
  transform: translateX(4px);
}

.contact-form-status {
  padding: 14px 18px;
  background: #eef8ff;
  color: #1765a0;
  border-radius: 12px;
  border: 1.5px dashed #bce2fe;
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 500;
}

/* Accessibility */
.contact-page [hidden] {
  display: none !important;
}

/* ==========================================================================
   5. Responsive Layout Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .contact-form-panel {
    padding: 34px 28px;
  }
}

@media (max-width: 768px) {
  .contact-width {
    width: calc(100% - 32px);
  }
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact-desktop-break {
    display: none;
  }
}

@media (max-width: 480px) {
  .contact-form-panel {
    padding: 26px 18px;
    border-radius: 20px;
  }
  .contact-info-card {
    padding: 22px 18px;
    border-radius: 18px;
  }
  .contact-card-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  .contact-send-btn {
    height: 48px;
    font-size: 15.5px;
  }
}
