.fc-configurator-page {
  padding: 2rem 0 3rem;
  min-height: 60vh;
}

.fc-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.fc-intro-text p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.fc-notices {
  margin: 1rem 0 1.5rem;
}
.fc-notices strong {
  font-weight: 600;
  color: #dc3545;
}
.fc-notices ul {
  padding-left: 0;
  margin: 0;
}
.fc-notices li {
  margin-bottom: 0;
  font-size: 0.875rem;
}

.fc-configurator-wrap {
  background: #f4f4f4;
  border-radius: 6px;
  padding: 1.75rem 2rem;
}

.fc-form {
  position: relative;
}

.fc-form-container {
  position: relative;
}

.fc-field-group {
  margin-bottom: 1.1rem;
  display: grid;
  grid-template-columns: 160px 1fr;
  column-gap: 1rem;
  align-items: start;
  align-content: start;
}

.fc-label {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #222;
  white-space: nowrap;
  width: 160px;
  margin-top: 10px;
}

.fc-required {
  color: #dc3545;
}

.fc-select,
.fc-input,
.fc-select.form-control,
.fc-input.form-control {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  color: #333;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  height: auto;
}
.fc-select:focus,
.fc-input:focus {
  border-color: #999;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.07);
}

.fc-select-wrap {
  position: relative;
  width: 100%;
}
.fc-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #666;
  pointer-events: none;
}
.fc-select-wrap .fc-select {
  padding-right: 2rem;
}

.fc-hint {
  grid-column: 2;
  grid-row: 2;
  display: block;
  margin-top: 0;
  font-size: 10px;
  color: #000;
  text-align: center;
}

.fc-input.fc-input-error ~ .fc-hint {
  color: #dc3545;
}

.fc-dimensions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.25rem;
}
.fc-dimensions-row .fc-field-group {
  flex: 1 1 250px;
  min-width: 200px;
  max-width: none;
  margin-bottom: 0;
  grid-template-columns: 160px 1fr;
}
@media (max-width: 767.98px) {
  .fc-dimensions-row .fc-field-group {
    flex: auto;
  }
}
.fc-dimensions-row .fc-input {
  max-width: 100%;
}

.fc-price-preview {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.fc-price-row {
  display: flex;
  flex-direction: row;
  padding: 0.25rem 1.25rem;
  width: 400px;
  justify-content: flex-start;
  margin: 0 auto;
  text-align: left;
}
@media (max-width: 767.98px) {
  .fc-price-row {
    width: 100%;
    padding: 0.25rem 0.5rem;
  }
}
.fc-price-row:last-child {
  border-bottom: none;
}

.fc-price-label {
  font-size: 1rem;
  color: #000;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.2;
  width: 150px;
}

.fc-price-value {
  font-size: 1rem;
  color: #000;
  font-weight: 700;
  line-height: 1.2;
}

.fc-submit-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

#fc-submit {
  width: 400px;
  text-align: center;
  display: flex;
  justify-content: center;
}
@media (max-width: 767.98px) {
  #fc-submit {
    width: 100%;
  }
}

.fc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.fc-btn:disabled, .fc-btn.disabled {
  background: #aaa !important;
  border-color: #aaa !important;
  color: #fff !important;
  opacity: 1;
  cursor: not-allowed;
}

.fc-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.875rem;
}

.fc-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-top-color: #e86500;
  border-radius: 50%;
  animation: fc-spin 0.7s linear infinite;
}

@keyframes fc-spin {
  to {
    transform: rotate(360deg);
  }
}
.fc-validation-msg div {
  margin-bottom: 0.2rem;
}
.fc-validation-msg div:last-child {
  margin-bottom: 0;
}

.fc-error-msg {
  margin-top: 1rem;
}

.fc-input-error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.12);
}

.fc-success-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.fc-success-box {
  text-align: center;
  padding: 2rem 1.5rem;
}
.fc-success-box h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.fc-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e86500;
  color: #fff;
  font-size: 1.75rem;
  line-height: 56px;
  margin: 0 auto 1rem;
}

.fc-success-summary {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.fc-success-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.fc-success-actions .btn-primary {
  background: #e86500 !important;
  border-color: #e86500 !important;
}
.fc-success-actions .btn-primary:hover {
  background: #d05a00 !important;
  border-color: #d05a00 !important;
}

.fc-product-widget {
  border: 2px solid #e86500;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
  background: #fffaf7;
}
.fc-product-widget .fc-configurator-wrap {
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  background: transparent;
}

.fc-product-widget-header {
  margin-bottom: 1rem;
}

.fc-product-widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #c95700;
  margin-bottom: 0.3rem;
}

.fc-product-widget-desc {
  font-size: 0.875rem;
  color: #666;
  margin: 0 0 0.5rem;
}

.fc-price-per-m2 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0.25rem;
  font-size: 0.95rem;
}
.fc-price-per-m2-label {
  color: #555;
}
.fc-price-per-m2-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e86500;
}
.fc-price-per-m2-note {
  font-size: 0.8rem;
  color: #888;
}

.fc-widget-notices {
  background: #fff8f0;
  border-left: 3px solid #e86500;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  border-radius: 0 4px 4px 0;
}

.fc-widget-notice-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: #555;
}
.fc-widget-notice-list li {
  margin-bottom: 0.2rem;
}

.fc-cart-dimensions {
  color: #666;
  margin-top: 0.2rem;
  font-size: 0.875rem;
}

@media (max-width: 767.98px) {
  .fc-configurator-page {
    padding: 1.25rem 0 2rem;
  }
  .fc-configurator-wrap {
    padding: 1.25rem 1rem;
    border-radius: 4px;
  }
  .fc-heading {
    font-size: 1.4rem;
  }
  .fc-field-group {
    grid-template-columns: 1fr;
  }
  .fc-label {
    grid-row: 1;
    align-self: auto;
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
    text-align: left;
  }
  .fc-hint {
    grid-column: 1;
    grid-row: 3;
  }
  .fc-dimensions-row {
    flex-direction: column;
    gap: 0;
  }
  .fc-dimensions-row .fc-field-group {
    max-width: 100%;
    margin-bottom: 1rem;
    grid-template-columns: 1fr;
  }
  .fc-submit-row {
    flex-direction: column;
    align-items: stretch;
  }
  .fc-btn {
    width: 100%;
    justify-content: center;
  }
  .fc-success-actions {
    flex-direction: column;
  }
}
