/* ============================================
   HAIRCHAIR FORM FLOW — Shared styles
   Brand: #58b325 (green) / #398110 (dark green)
   ============================================ */

/* Wrapper */
.hc-form-wrapper {
  background: #f5f7f5;
  padding: 40px 0 60px;
  margin: -30px -15px;
  min-height: calc(100vh - 200px);
}

/* ---- Stepper ---- */
.hc-stepper { margin-bottom: 40px; }

.hc-stepper-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.hc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.hc-step-indicator {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s ease;
  z-index: 2;
}

.hc-step.active .hc-step-indicator {
  background: #58b325;
  color: #fff;
  box-shadow: 0 4px 14px rgba(88, 179, 37, 0.35);
}

.hc-step.completed .hc-step-indicator {
  background: #58b325;
  color: #fff;
}

.hc-step-label {
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  margin-top: 8px;
  text-align: center;
  white-space: nowrap;
}

.hc-step.active .hc-step-label,
.hc-step.completed .hc-step-label {
  color: #58b325;
}

.hc-step-line {
  flex: 1;
  height: 3px;
  background: #e0e0e0;
  margin-top: 20px;
  min-width: 40px;
  transition: background 0.3s ease;
}

.hc-step-line.filled { background: #58b325; }

/* ---- Card ---- */
.hc-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  overflow: hidden;
  animation: hcFadeUp 0.4s ease-out;
}

.hc-card-body { padding: 40px 36px; }

/* ---- Typography ---- */
.hc-form-title {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin: 0 0 6px;
  line-height: 1.3;
}

.hc-form-subtitle {
  font-size: 15px;
  color: #888;
  margin: 0 0 28px;
  line-height: 1.5;
}

.hc-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.hc-form-section { margin-bottom: 32px; }

.hc-form-hint {
  font-size: 14px;
  color: #888;
  margin: -8px 0 16px;
}

.hc-form-link {
  text-align: right;
  margin: -4px 0 16px;
}

.hc-form-link a {
  color: #58b325;
  font-size: 13px;
  text-decoration: none;
}

.hc-form-link a:hover {
  text-decoration: underline;
  color: #398110;
}

/* ---- Tabs ---- */
.hc-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 2px solid #f0f0f0;
}

.hc-tab {
  flex: 1;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #999;
  text-decoration: none;
  text-align: center;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.hc-tab:hover,
.hc-tab:focus {
  color: #58b325;
  text-decoration: none;
}

.hc-tab.active {
  color: #58b325;
  border-bottom-color: #58b325;
}

.tab-content { padding-top: 4px; }
.tab-pane { animation: hcFade 0.25s ease-in; }

/* ---- Buttons ---- */
.hc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.hc-btn-primary {
  background: #58b325;
  color: #fff;
}

.hc-btn-primary:hover,
.hc-btn-primary:focus {
  background: #398110;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88, 179, 37, 0.3);
  text-decoration: none;
}

.hc-btn-success {
  background: #58b325;
  color: #fff;
}

.hc-btn-success:hover,
.hc-btn-success:focus {
  background: #398110;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88, 179, 37, 0.3);
  text-decoration: none;
}

.hc-btn-outline {
  background: #fff;
  color: #58b325;
  border: 1.5px solid #58b325;
}

.hc-btn-outline:hover,
.hc-btn-outline:focus {
  background: #58b325;
  color: #fff;
  text-decoration: none;
}

.hc-btn-sm { padding: 8px 18px; font-size: 14px; border-radius: 8px; }

.hc-btn-block {
  display: flex;
  width: 100%;
  margin-top: 24px;
}

/* ---- USPs ---- */
.hc-usps {
  margin-top: 40px;
  padding: 28px 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.hc-usps .widget {
  background: none;
  padding: 0;
  margin: 0;
  border: none;
}

.hc-usps h2 { font-size: 18px; font-weight: 700; color: #222; margin: 0 0 4px; }
.hc-usps h3 { font-size: 15px; font-weight: 600; color: #58b325; margin: 0 0 12px; }
.hc-usps ul { padding-left: 18px; margin: 0; }
.hc-usps li { font-size: 14px; color: #555; margin-bottom: 6px; line-height: 1.5; }
.hc-usps p { font-size: 14px; color: #555; line-height: 1.6; }

/* ---- Form field overrides ---- */
.hc-card .form-control {
  border-radius: 8px;
  border: 1.5px solid #e0e0e0;
  padding: 10px 14px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hc-card .form-control:focus {
  border-color: #58b325;
  box-shadow: 0 0 0 3px rgba(88, 179, 37, 0.12);
  outline: none;
}

.hc-card label {
  font-weight: 600;
  font-size: 14px;
  color: #444;
  margin-bottom: 6px;
}

.hc-card .form-group { margin-bottom: 20px; }

/* Feature editor in hc-card */
.hc-card #feature-editor { margin-bottom: 20px; }

.hc-card #feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hc-card #feature-list li {
  background: #f0f7ec;
  border: 1px solid #d4e8c8;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: #333;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hc-card #feature-list li a {
  color: #999;
  font-size: 14px;
}

.hc-card #feature-list li a:hover { color: #e74c3c; }

.hc-card #feature-editor .input-group {
  max-width: 350px;
}

.hc-card #feature-editor .input-group .form-control {
  border-radius: 8px 0 0 8px;
}

.hc-card #feature-editor .input-group .btn {
  border-radius: 0 8px 8px 0;
}

/* Map in hc-card */
.hc-card #map-inner {
  position: relative;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
}

.hc-card #map-canvas { width: 100%; height: 100%; }
.hc-card #map-outer.widget { background: none; border: none; padding: 0; margin-bottom: 20px; }

/* ---- Address autocomplete ---- */
.hc-address-search { margin-bottom: 20px; }

.hc-address-search label {
  font-weight: 600;
  font-size: 14px;
  color: #444;
  margin-bottom: 6px;
}

.hc-address-search label .fa {
  color: #58b325;
  margin-right: 4px;
}

#address-autocomplete-container {
  margin-top: 4px;
}

.hc-address-details {
  background: #fafcfa;
  border-radius: 10px;
  padding: 20px 20px 4px;
  margin-top: 16px;
  border: 1px solid #eef3ec;
}

.hc-address-details .hc-form-hint {
  margin: -8px 0 16px;
  font-size: 13px;
  color: #999;
}

.hc-address-details .hc-form-hint .fa { margin-right: 4px; }

.hc-field-updated {
  background-color: #f0f7ec !important;
  border-color: #58b325 !important;
  transition: background-color 1.5s ease, border-color 1.5s ease;
}

/* ---- Empty state ---- */
.hc-empty-state {
  text-align: center;
  color: #bbb;
  padding: 32px 16px;
  font-size: 15px;
  line-height: 1.6;
}

.hc-empty-state .fa {
  font-size: 2.5em;
  margin-bottom: 12px;
  display: block;
  color: #ddd;
}

/* ---- Text center ---- */
.hc-text-center { text-align: center; }

/* ---- Drop zone ---- */
.hc-dropzone {
  border: 2px dashed #d0d0d0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background: #fafcfa;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 24px;
}

.hc-dropzone:hover,
.hc-dropzone.drag-over {
  border-color: #58b325;
  background: #f0f7ec;
}

.hc-dropzone-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hc-dropzone-icon { font-size: 1.6em; color: #58b325; }
.hc-dropzone-text { color: #888; font-size: 14px; }

/* ---- Mobile upload ---- */
.hc-upload-mobile {
  display: none;
  gap: 12px;
  margin-top: 24px;
}

/* ---- Photo grid ---- */
.photo-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.photo-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  cursor: move;
}

.photo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}

.photo-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}

.photo-thumbnail img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.photo-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.photo-item:hover .photo-overlay { opacity: 1; }
.photo-controls { display: flex; gap: 8px; }

.photo-control-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #58b325;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 14px;
}

.photo-control-btn:hover { background: #58b325; color: #fff; }
.photo-control-delete:hover { background: #e74c3c; color: #fff; }

.photo-item-placeholder {
  border: 2px dashed #58b325;
  background: #f0f7ec;
  border-radius: 10px;
}

/* ---- Order summary ---- */
.hc-order-summary {
  background: #fafcfa;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.hc-order-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
}

.hc-order-item {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}

.hc-order-meta {
  display: block;
  font-size: 13px;
  color: #999;
  margin-top: 2px;
}

.hc-order-price {
  font-size: 15px;
  color: #333;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 16px;
}

.hc-order-discount .hc-order-price { color: #58b325; }

.hc-order-divider {
  border-top: 1px solid #eee;
  margin: 4px 0;
}

.hc-order-total-row .hc-order-item,
.hc-order-total-row .hc-order-price {
  font-size: 14px;
  color: #666;
}

.hc-order-grand-total {
  border-top: 2px solid #58b325;
  padding-top: 12px;
  margin-top: 4px;
}

.hc-order-grand-total .hc-order-item,
.hc-order-grand-total .hc-order-price {
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

/* ---- Coupon ---- */
.hc-coupon { margin-bottom: 32px; }
.hc-coupon a { color: #58b325; font-size: 14px; text-decoration: none; font-weight: 500; }
.hc-coupon a:hover { text-decoration: underline; color: #398110; }
.hc-coupon .fa { margin-right: 4px; }

/* ---- Invoice address ---- */
.hc-invoice-address { font-size: 14px; color: #555; line-height: 1.6; }

/* ---- Secure note ---- */
.hc-secure-note { text-align: center; font-size: 13px; color: #aaa; margin-top: 16px; }
.hc-secure-note .fa { margin-right: 4px; color: #58b325; }

/* ---- Status icon ---- */
.hc-status-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
  animation: hcPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.hc-status-success { background: #e8f5e1; color: #58b325; }
.hc-status-error { background: #fce8e8; color: #e74c3c; }

/* ---- Success / Error details ---- */
.hc-success-details {
  background: #fafcfa;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 28px;
  text-align: left;
}

.hc-success-details p { font-size: 15px; color: #555; margin: 0 0 8px; line-height: 1.6; }
.hc-success-details p:last-child { margin-bottom: 0; }
.hc-success-details strong { color: #58b325; }

.hc-error-actions { margin-top: 8px; }
.hc-help-text { font-size: 14px; color: #999; margin-top: 20px; }
.hc-help-text a { color: #58b325; text-decoration: none; font-weight: 500; }
.hc-help-text a:hover { text-decoration: underline; color: #398110; }

/* ---- Animations ---- */
@keyframes hcFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hcFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hcPop {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hc-form-wrapper {
    padding: 20px 0 40px;
    margin: -30px -10px;
  }

  .hc-card-body { padding: 28px 20px; }
  .hc-form-title { font-size: 20px; }

  .hc-stepper-track { max-width: 100%; padding: 0 10px; }
  .hc-step-indicator { width: 34px; height: 34px; font-size: 13px; }
  .hc-step-label { font-size: 11px; }
  .hc-step-line { margin-top: 17px; min-width: 24px; }

  .hc-tabs { gap: 0; }
  .hc-tab { padding: 10px 16px; font-size: 13px; }

  .col-md-offset-2,
  .col-lg-offset-3,
  .col-md-offset-1,
  .col-lg-offset-2 {
    margin-left: 0;
  }

  .hc-usps { padding: 20px; margin-top: 24px; }

  /* Photo page mobile */
  .hc-dropzone { display: none; }
  .hc-upload-mobile { display: flex; flex-wrap: wrap; justify-content: center; }
  .hc-upload-mobile .hc-btn { flex: 1; min-width: 120px; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; }

  /* Payment page mobile */
  .hc-order-summary { padding: 16px; }
  .hc-order-grand-total .hc-order-item,
  .hc-order-grand-total .hc-order-price { font-size: 16px; }
  .hc-status-icon { width: 64px; height: 64px; font-size: 28px; }
}
