/* ==========================================================================
   AMEEE NDT - SERVICE ENQUIRY FORM STYLES
   Exact replica of industrial technical enquiry portal
   ========================================================================== */

.sef-container {
  max-width: 1350px;
  margin: 30px auto;
  background: #f8fafc;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1e293b;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

/* 1. Header Bar */
.sef-header {
  background: linear-gradient(135deg, #0b3b60 0%, #0d4b7a 100%);
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sef-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

.sef-title-icon {
  font-size: 24px;
}

.sef-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.sef-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sef-meta-item label {
  font-weight: 600;
  color: #e2e8f0;
  margin: 0;
}

.sef-meta-input {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  outline: none;
}

/* 2. Chevron Pipeline Status Bar */
.sef-pipeline {
  display: flex;
  background: #e2e8f0;
  overflow-x: auto;
  border-bottom: 1px solid #cbd5e1;
}

.sef-step {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  position: relative;
  background: #e2e8f0;
  clip-path: polygon(0% 0%, calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 0% 100%, 12px 50%);
  margin-left: -6px;
  user-select: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sef-step:first-child {
  clip-path: polygon(0% 0%, calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 0% 100%);
  margin-left: 0;
}

.sef-step.active {
  background: #0284c7;
  color: #ffffff;
}

.sef-step.done {
  background: #059669;
  color: #ffffff;
}

/* 3. Form Cards Grid */
.sef-body {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.sef-col-4 { grid-column: span 4; }
.sef-col-6 { grid-column: span 6; }
.sef-col-12 { grid-column: span 12; }

@media (max-width: 1024px) {
  .sef-col-4 { grid-column: span 6; }
}

@media (max-width: 768px) {
  .sef-col-4, .sef-col-6 { grid-column: span 12; }
}

.sef-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sef-card-header {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #cbd5e1;
  text-transform: uppercase;
}

/* Color thematic headers */
.sef-header-blue { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.sef-header-green { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.sef-header-red { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.sef-header-purple { background: #f3e8ff; color: #7e22ce; border-color: #e9d5ff; }
.sef-header-orange { background: #ffedd5; color: #c2410c; border-color: #fed7aa; }
.sef-header-teal { background: #ccfbf1; color: #0f766e; border-color: #99f6e4; }
.sef-header-pink { background: #fce7f3; color: #be185d; border-color: #fbcfe8; }
.sef-header-indigo { background: #e0e7ff; color: #4338ca; border-color: #c7d2fe; }
.sef-header-darkblue { background: #e2e8f0; color: #1e3a8a; border-color: #cbd5e1; }

.sef-card-body {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.sef-full-width {
  grid-column: span 2;
}

.sef-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sef-field label {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin: 0;
}

.sef-required {
  color: #dc2626;
}

.sef-input, .sef-select, .sef-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 12px;
  color: #0f172a;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.15s ease-in-out;
}

.sef-input:focus, .sef-select:focus, .sef-textarea:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.sef-radio-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
}

.sef-radio-label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.sef-badge-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.sef-tag {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid #bae6fd;
}

.sef-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 11px;
}

.sef-file-label {
  font-weight: 600;
  color: #334155;
}

.sef-file-input {
  font-size: 11px;
  max-width: 180px;
}

/* 4. Footer Actions */
.sef-footer {
  background: #f1f5f9;
  border-top: 1px solid #cbd5e1;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sef-btn {
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sef-btn-cancel {
  background: #e2e8f0;
  color: #475569;
}
.sef-btn-cancel:hover { background: #cbd5e1; }

.sef-btn-draft {
  background: #0b3b60;
  color: #ffffff;
}
.sef-btn-draft:hover { background: #072a45; }

.sef-btn-submit {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
}
.sef-btn-submit:hover { background: #15803d; }

.sef-btn-next {
  background: #7c3aed;
  color: #ffffff;
}
.sef-btn-next:hover { background: #6d28d9; }
