/**
 * RFQ Template Styles - Matching Exact Mockup
 * @package SIS Vietnam Theme
 */

/* ==========================================================================
   Layout
   ========================================================================== */
.rfq-main-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.rfq-ux-content {
  margin-bottom: 30px;
}

.rfq-form-wrapper {
  background: #fff;
}

/* ==========================================================================
   Header
   ========================================================================== */

.rfq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.rfq-form-title {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  font-style: normal;
}

.rfq-btn-bom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #1a5f6a !important;
  color: #fff !important;
  border: none;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.rfq-btn-bom:hover {
  background: #145058 !important;
}

/* ==========================================================================
   Product Table
   ========================================================================== */

.rfq-table-section {
  margin-bottom: 15px;
}

.rfq-product-table {
  width: 100%;
  border-collapse: collapse;
}

.rfq-product-table thead th {
  color: #000000;
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  text-transform: math-auto;
}

.rfq-product-table thead th .required {
  color: #f39c12;
}

.rfq-product-table tbody td {
  padding: 8px 5px;
  vertical-align: middle;
}

.rfq-product-table .col-partno {
  width: 18%;
}
.rfq-product-table .col-manufacturer {
  width: 18%;
}
.rfq-product-table .col-description {
  width: 24%;
}
.rfq-product-table .col-quantity {
  width: 18%;
}
.rfq-product-table .col-price {
  width: 18%;
}
.rfq-product-table .col-action {
  width: 40px;
  text-align: center;
}

/* ==========================================================================
   Inputs
   ========================================================================== */

.rfq-input {
  width: 100%;
  padding: 8px 0 !important;
  border: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid #ccc !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.rfq-input:focus {
  border-bottom-color: var(--custom-primary-color) !important;
  box-shadow: none !important;
}

.rfq-textarea {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  resize: vertical;
  min-height: 60px;
}

.rfq-textarea:focus {
  border-color: #1a7f7f;
}

/* ==========================================================================
   Delete Button
   ========================================================================== */

.rfq-btn-remove {
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  color: #5f5f5f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0 !important;
}

.rfq-btn-remove:hover:not(:disabled) {
  color: #e74c3c;
}

.rfq-btn-remove:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ==========================================================================
   Actions Row
   ========================================================================== */

.rfq-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 30px;
}

.rfq-country-select {
  border: 1px solid #1a7f7f;
  border-radius: 22px;
  font-size: 14px;
  color: #c0392b;
  background: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 140px;
}

.rfq-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1a7f7f;
  border: 1px solid #1a7f7f;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.rfq-btn-add:hover {
  background: #f0fafa;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.rfq-contact-section {
  margin-bottom: 30px;
}

.rfq-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 20px;
}

.rfq-contact-row.rfq-full-width {
  grid-template-columns: 1fr;
}

.rfq-field {
  position: relative;
}

.rfq-field label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}

.rfq-field label .required {
  color: #c0392b;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */

.rfq-submit-section {
  text-align: center;
  padding: 20px 0;
}

.rfq-btn-submit {
  display: inline-block;
  padding: 0 40px !important;
  background: #1a7f7f !important;
  background-color: #1a7f7f !important;
  color: #fff !important;
  border: none !important;
  border-radius: 25px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
}

.rfq-btn-submit:hover {
  background: #166b6b !important;
  background-color: #166b6b !important;
}

/* ==========================================================================
   Messages
   ========================================================================== */

.rfq-message {
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
  text-align: center;
}

.rfq-message.error {
  background: #fce4e4;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

.rfq-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* ==========================================================================
   Loading
   ========================================================================== */

.rfq-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .rfq-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .rfq-contact-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rfq-actions-row {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .rfq-country-select,
  .rfq-btn-add {
    width: 100%;
    justify-content: center;
  }

  .rfq-product-table {
    display: block;
    overflow-x: auto;
  }
}
