/* Quote Form Styles */
.quote-form-section {
  padding: 3rem 0;
  background-color: #f8f9fa;
}

.quote-form-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  background-color: transparent !important;
  border-radius: 12px;
  box-shadow: none !important;
  padding: 2rem;
}

/* Card Styles */
.form-card {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.card-title {
  color: #1a1a1a;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--secondary);
}

/* Form Controls */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #495057;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 6px;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
  outline: none;
}

/* TMT Bar Grid */
.tmt-bars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .tmt-bars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tmt-bar-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  min-width: 300px;
  width: 100%;
  border-left: 4px solid var(--primary);
  transition: 0.4s;
}

.tmt-bar-card:hover {
  transform: translateY(-2px);
  border-left: 4px solid var(--secondary);
  transition: 0.4s;
}

.size-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 415px) {
  .input-group {
    flex-direction: column;
    width: 100%;
  }

  .input-group .form-control {
    width: 100%;
  }

  .input-group .unit-select-btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  .tmt-bar-card {
    min-width: auto;
    width: 100%;
  }

  .tmt-bars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .quote-form-container {
    padding: 1rem;
    margin: 0 0.5rem;
  }

  .form-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
}

.input-suffix {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.unit-select-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--white);
  background-color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.unit-select-btn:hover {
  background-color: var(--secondary);
  border: 1px solid var(--secondary);
  color: #fff;
}

/* Total Weight Display */
.total-weight-display {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  border-left: 4px solid var(--secondary);
}

.total-weight-display span {
  color: #4b5563;
  font-weight: 500;
}

.total-weight-display strong {
  color: var(--secondary);
  font-size: 1.125rem;
}

/* Ring Requirements */
.ring-row {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.ring-row:hover {
  border-color: var(--secondary);
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.1);
}

.ring-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ring-header span {
  font-weight: 600;
  color: #1a1a1a;
}

.ring-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-add-ring,
.btn-delete-ring {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-ring {
  background-color: var(--secondary);
  color: #fff;
}

.btn-delete-ring {
  background-color: var(--primary);
  color: #fff;
}

.btn-add-ring:hover {
  background-color: var(--secondary-dark);
}

.btn-delete-ring:hover {
  background-color: var(--primary-dark);
}

.ring-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

/* Form Actions */
.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-reset,
.btn-submit {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-reset {
  color: #4b5563;
  background-color: #fff;
  border: 1px solid #d1d5db;
}

.btn-submit {
  color: #fff;
  background-color: var(--secondary);
  border: none;
}

.btn-reset:hover {
  background-color: #f3f4f6;
}

.btn-submit:hover {
  background-color: var(--secondary-dark);
}

.btn-reset i,
.btn-submit i {
  font-size: 1.125rem;
}

/* Unit Selection Modal */
.unit-selection-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.unit-selection-modal.active {
  display: flex;
}

.modal-content {
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
  text-align: center;
}

.unit-options {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.unit-option {
  padding: 1rem;
  font-size: 1rem;
  color: #4b5563;
  background-color: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.unit-option:hover {
  background-color: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.modal-close {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  color: #4b5563;
  background-color: #f3f4f6;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: #e5e7eb;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .quote-form-container {
    padding: 1rem;
  }

  .form-card {
    padding: 1rem;
  }

  .ring-inputs {
    grid-template-columns: 1fr;
  }

  .form-actions {
    grid-template-columns: 1fr;
  }
} 