/* Custom Design System for Public Quotation Submission Form */

:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #0ea5e9;
  --bg-color: #f1f5f9;
  --card-bg: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --focus-ring: rgba(79, 70, 229, 0.15);
  --error-color: #ef4444;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  min-height: 100vh;
}

.form-container-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.form-header h2 {
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.025em;
}

.form-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.section-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.form-label {
  font-weight: 550;
  font-size: 0.875rem;
  color: #334155;
  margin-bottom: 0.5rem;
}

.form-label.required::after {
  content: ' *';
  color: var(--error-color);
}

.form-control, .form-select {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease-in-out;
  color: var(--text-dark);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--focus-ring);
  outline: none;
}

.form-control::placeholder {
  color: #94a3b8;
}

/* Custom Radio Styling */
.custom-radio {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  width: 100%;
}

.custom-radio:hover {
  background-color: #f1f5f9;
}

.custom-radio .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.custom-radio .form-check-input:checked + .form-check-label {
  color: var(--primary-color);
}

/* Submit Button */
.btn-submit {
  background-color: var(--primary-color);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  width: 100%;
  color: #ffffff;
}

.btn-submit:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Utility classes */
.fs-7 {
  font-size: 0.75rem;
}

.sub-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Success & Error State */
.success-msg {
  color: #15803d;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
}

.error-msg {
  color: #b91c1c;
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
}

@media(max-width: 991px) {
  .form-card {
    padding: 1.75rem;
  }
}