/* ==========================================================================
   OEM-ODM PAGE STYLES
   ========================================================================== */

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.oem-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: min(80vh, 720px);
  min-height: 580px;
  background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0) 65%),
              url(/dist/img/banner/oem-banner.webp) no-repeat center center;
  background-size: cover;
}

.oem-hero .hero-copy {
  max-width: 500px;
}

.hero-desc {
  margin: 20px 0;
  line-height: 1.6;
}

.hero .btn i {
  font-size: 16px;
}


/* ==========================================================================
   2. MATERIAL OPTIONS SECTION
   ========================================================================== */
.material-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
}

.material-intro__desc {
  margin: 16px 0 24px;
  color: var(--text-color);
  line-height: 1.7;
  font-size: 16px;
}

.material-intro .section-title {
  margin-bottom: 0;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.material-card {
  background: #fff;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.material-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #F3F4F6;
}

.material-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.material-card:hover .material-card__img img {
  transform: scale(1.05);
}

.material-card__body {
  padding: 15px;
}

.material-card__title {
  font-size: 18px;
  font-weight: 500;
  color: var(--title-color);
  margin: 0 0 12px;
  line-height: 1.3;
}

.material-card__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
}


/* ==========================================================================
   3. NDA PROTECTION SECTION
   ========================================================================== */
.nda-section {
  background: linear-gradient(to left, #ffffff 0%, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0) 80%),
              url(/dist/img/banner/NDA-banner.webp) no-repeat center center;
  background-size: cover;
}

.nda-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
  align-items: center;
}

.nda-content {
  display: flex;
  gap: 30px;
}

.nda-content__icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  margin-bottom: 24px;
}

.nda-content__icon i {
  font-size: 36px;
}

.nda-content .section-title {
  margin-bottom: 20px;
}

.nda-content__desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-color);
  margin: 0 0 32px;
}


/* ==========================================================================
   4. OEM FORM SECTION
   ========================================================================== */
.oem-form-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: stretch;
}

.oem-form-column {
  display: flex;
  gap: 32px;
}

/* Upload Card */
.form-card:first-child {
  background-color: #f4f7fb;
}

.form-card {
  padding: 15px;
  background: #fff;
}

.upload-card {
  text-align: center;
}

.upload-card__header {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: self-start;
}

.upload-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(50, 150, 148, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.upload-card__icon i {
  font-size: 36px;
}

.upload-card__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* File Drop Zone */
.file-drop {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #FAFBFC;
}

.file-drop:hover,
.file-drop.is-dragover {
  border-color: var(--secondary-color);
  background: rgba(50, 150, 148, 0.04);
}

.file-drop input[type="file"] {
  display: none;
}

.file-drop__icon {
  margin: 0 auto 20px;
  line-height: 1;
}

.file-drop__icon i {
  font-size: 56px;
  color: var(--secondary-color);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.file-drop:hover .file-drop__icon i,
.file-drop.is-dragover .file-drop__icon i {
  opacity: 0.9;
}

.file-drop__text {
  font-size: 16px;
  color: var(--text-color);
  margin: 0 0 12px;
}

.file-drop__text strong {
  color: var(--title-color);
}

.file-drop__link {
  color: var(--secondary-color);
  text-decoration: underline;
  cursor: pointer;
}

.file-drop__hint {
  font-size: 13px;
  color: var(--text-color);
  opacity: 0.7;
  line-height: 1.6;
  margin: 0;
}

/* File List */
.file-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}

.file-list li .file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.file-list li .file-info i {
  color: var(--secondary-color);
  font-size: 16px;
  flex-shrink: 0;
}

.file-list li .file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--title-color);
}

.file-list li .file-size {
  color: var(--text-color);
  font-size: 13px;
  white-space: nowrap;
}

.file-remove {
  background: none;
  border: none;
  color: #DC2626;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.file-remove:hover {
  background: #FEE2E2;
}

/* Privacy Notice */
.file-privacy-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  background: #F0FDF4;
  border-left: 3px solid #16A34A;
  border-radius: 6px;
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
  text-align: left;
}

.file-privacy-notice i {
  flex-shrink: 0;
  color: #16A34A;
  margin-top: 2px;
  font-size: 16px;
}

/* Contact Form */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.field--full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field label {
  font-size: 15px;
  font-weight: 600;
  color: var(--title-color);
  line-height: 1.4;
}

.field .req {
  color: #DC2626;
  margin-left: 2px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--title-color);
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  line-height: 1.5;
  transition: border-color 0.25s ease,
              box-shadow 0.25s ease,
              background 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
  cursor: pointer;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9CA3AF;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #CBD5E1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(50, 150, 148, 0.15);
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
}

.field input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--title-color);
  transition: background-color 5000s ease-in-out 0s;
}

/* Form Error States */
.field-error {
  display: none;
  font-size: 13px;
  color: #DC2626;
  line-height: 1.4;
}

.field.has-error .field-error {
  display: block;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #DC2626;
  background: #FEF2F2;
}

.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* Form Submit Area */
.form-foot {
  margin-top: 32px;
}

.form-foot .btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-foot .btn:disabled,
.form-foot .btn.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.form-foot .btn.is-loading i {
  animation: oemSpin 0.8s linear infinite;
}

@keyframes oemSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Form Success/Error Messages */
.form-success {
  display: none;
  margin-top: 20px;
  padding: 16px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}

.form-success.is-success {
  display: block;
  background: #F0FDF4;
  border-left: 3px solid #16A34A;
  color: #166534;
}

.form-success.is-error {
  display: block;
  background: #FEF2F2;
  border-left: 3px solid #DC2626;
  color: #991B1B;
}

/* Sidebar */
.oem-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.oem-sidebar-card {
  flex: 1;
  background-image: url('/dist/img/design.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 500px;
}

.oem-sidebar-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.oem-sidebar-card__body {
  padding: 40px 32px;
  position: relative;
  z-index: 2;
}

.oem-sidebar-card__body h3 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 16px;
}

.oem-sidebar-card__body p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}


/* ==========================================================================
   5. MANUFACTURING PROCESS SECTION
   ========================================================================== */
#process .section-content {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: center;
}

#process .section-head {
  text-align: left;
  max-width: 100%;
}

#process .section-head .section-title {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 16px;
}

#process .section-head p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  margin: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 0 8px;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -20px;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, #CBD5E1 0%, #CBD5E1 40%, transparent 100%);
  transform: translateY(-50%);
  z-index: 0;
}

.process-step:not(:last-child)::before {
  content: "→";
  position: absolute;
  top: 44px;
  right: -28px;
  transform: translateY(-50%);
  color: #CBD5E1;
  font-size: 20px;
  font-weight: 300;
  z-index: 1;
}

.process-step__icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  margin: 0 auto 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.process-step__icon i {
  font-size: 34px;
}

.process-step:hover .process-step__icon {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.process-step__number {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.process-step__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--title-color);
  line-height: 1.3;
  margin: 0 0 8px;
}

.process-step__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-color);
  margin: 0;
}


/* ==========================================================================
   6. FINAL CTA SECTION
   ========================================================================== */
.final-cta {
  background: rgba(0, 0, 0, 0.6) url(/dist/img/banner/oem-banner.webp) no-repeat center center;
  background-size: cover;
  background-blend-mode: multiply;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(50, 150, 148, 0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(50, 150, 148, 0.1) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

.final-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.final-cta .section-title {
  margin-bottom: 12px;
}

.final-cta p {
  color: #CBD5E1;
  max-width: 600px;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}


/* ==========================================================================
   7. RESPONSIVE STYLES
   ========================================================================== */

/* ---------- 996px Breakpoint ---------- */
@media (max-width: 996px) {
  /* Hero */
  .oem-hero {
    height: auto;
    min-height: 500px;
    padding: 80px 0 60px;
  }
  
  .oem-hero .hero-copy {
    max-width: 100%;
  }
  
  /* Material Layout: 2-column to single column */
  .material-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .material-intro {
    position: static;
  }
  
  /* Material Grid: 4 columns to 2 columns */
  .material-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .material-card__body {
    padding: 20px;
  }

  .oem-form-column{
    flex-direction: column;
  }

    /* NDA Layout: 2-column to single column */
  .nda-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* OEM Form: Main + Sidebar to single column */
  .oem-form-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .oem-sidebar-card {
    min-height: 400px;
  }
  
  /* Process: Side-by-side to stacked */
  #process .section-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Process Grid: 6 columns to 3 columns */
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
  }
  
  .process-step:nth-child(3n)::after,
  .process-step:nth-child(3n)::before {
    display: none;
  }
}


/* ---------- 768px Breakpoint ---------- */
@media (max-width: 768px) {
  /* Hero */
  .oem-hero {
    min-height: 450px;
    padding: 100px 0 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%),
                url(/dist/img/banner/oem-banner.webp) no-repeat center center;
  }
  
  .oem-hero .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .oem-hero .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Material Grid: 2 columns to 1 column */
  .material-grid {
    grid-template-columns: 1fr;
  }
  
  .material-card__body {
    padding: 16px;
  }
  
  /* NDA Content */
  .nda-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .nda-content__icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }
  
  .nda-content__icon i {
    font-size: 28px;
  }
  
  /* Upload Card */
  .upload-card__icon {
    width: 64px;
    height: 64px;
  }
  
  .upload-card__icon i {
    font-size: 28px;
  }
  
  /* File Drop */
  .file-drop {
    padding: 32px 20px;
  }
  
  .file-drop__icon i {
    font-size: 44px;
  }
  
  /* Form */
  .form-card {
    padding: 28px 20px;
    border-radius: 12px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .field--full {
    grid-column: auto;
  }
  
  /* Sidebar Card */
  .oem-sidebar-card {
    min-height: 350px;
  }
  
  .oem-sidebar-card__body {
    padding: 32px 24px;
  }
  
  .oem-sidebar-card__body h3 {
    font-size: 26px;
  }
  
  /* Process Grid: 3 columns to 2 columns */
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
  
  .process-step:nth-child(3n)::after,
  .process-step:nth-child(3n)::before {
    display: block;
  }
  
  .process-step:nth-child(2n)::after,
  .process-step:nth-child(2n)::before {
    display: none;
  }
  
  /* Final CTA */
  .final-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  
  .final-cta .cta-row {
    width: 100%;
  }
  
  .final-cta .btn {
    width: 100%;
  }
}


/* ---------- 480px Breakpoint ---------- */
@media (max-width: 480px) {
  /* Hero */
  .oem-hero {
    min-height: 400px;
    padding: 100px 0 40px;
  }
  
  .hero-desc {
    font-size: 15px;
  }
  
  /* Material Cards */
  .material-card__title {
    font-size: 16px;
  }
  
  .material-card__desc {
    font-size: 14px;
  }
  
  /* NDA Content */
  .nda-content__icon {
    width: 56px;
    height: 56px;
  }
  
  .nda-content__icon i {
    font-size: 24px;
  }
  
  .nda-content__desc {
    font-size: 15px;
  }
  
  /* Upload Card */
  .upload-card__icon {
    width: 56px;
    height: 56px;
  }
  
  .upload-card__icon i {
    font-size: 24px;
  }
  
  .upload-card__desc {
    font-size: 15px;
  }
  
  /* File Drop */
  .file-drop {
    padding: 24px 16px;
  }
  
  .file-drop__icon i {
    font-size: 36px;
  }
  
  .file-drop__text {
    font-size: 14px;
  }
  
  .file-drop__hint {
    font-size: 12px;
  }
  
  /* Form */
  .form-card {
    padding: 24px 16px;
  }
  
  .field label {
    font-size: 14px;
  }
  
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="tel"],
  .field input[type="number"],
  .field input[type="date"],
  .field select,
  .field textarea {
    font-size: 14px;
    padding: 11px 12px;
    border-radius: 8px;
  }
  
  .field textarea {
    min-height: 100px;
  }
  
  .form-foot {
    margin-top: 24px;
  }
  
  .form-success {
    font-size: 14px;
    padding: 14px;
  }
  
  /* Sidebar Card */
  .oem-sidebar-card {
    min-height: 300px;
  }
  
  .oem-sidebar-card__body {
    padding: 24px 20px;
  }
  
  .oem-sidebar-card__body h3 {
    font-size: 22px;
  }
  
  .oem-sidebar-card__body p {
    font-size: 14px;
  }
  
  /* Process Grid: 2 columns to 1 column */
  .process-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .process-step::after,
  .process-step::before {
    display: none;
  }
  
  .process-step__icon {
    width: 72px;
    height: 72px;
  }
  
  .process-step__icon i {
    font-size: 28px;
  }
  
  .process-step__title {
    font-size: 15px;
  }
  
  .process-step__desc {
    font-size: 12px;
  }
  
  /* Final CTA */
  .final-cta__inner {
    gap: 24px;
  }
}
