/* Enhanced Quotation Form Styles - Matching Brand Colors */

.quotation-section {
  min-height: 100vh;
  background: linear-gradient(rgba(15, 15, 15, 0.85), rgba(0, 0, 0, 0.75)),
              url('../images/about/jmca_bg.jpg') center center/cover no-repeat fixed;
  padding: 60px 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  position: relative;
}

.quotation-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(210, 155, 32, 0.15), transparent 70%);
  pointer-events: none;
}

.quotation-container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 50px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  animation: fadeInUp 0.6s ease-out;
  overflow: hidden;
}

.quotation-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #D29B20, #b8850f);
  border-radius: 12px 0 0 12px;
}

.quotation-container::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(210, 155, 32, 0.05), transparent 70%);
  pointer-events: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: #D29B20;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.back-link:hover {
  background: rgba(210, 155, 32, 0.1);
  transform: translateX(-5px);
}

.quotation-title {
  font-size: 42px;
  font-weight: 700;
  color: #0f0f0f;
  margin: 0 0 10px 0;
  position: relative;
  z-index: 1;
}

.quotation-title span {
  color: #D29B20;
  position: relative;
  display: inline-block;
}

.quotation-subtitle {
  color: #666;
  font-size: 16px;
  margin: 0 0 40px 0;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.quotation-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.form-left,
.form-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-left label,
.form-right label {
  font-size: 14px;
  font-weight: 600;
  color: #0f0f0f;
  margin-bottom: -16px;
  display: block;
}

.form-left input,
.form-left select,
.form-right textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 15px;
  color: #0f0f0f;
  transition: all 0.3s ease;
  background: #ffffff;
  font-family: inherit;
  box-sizing: border-box;
}

.form-left input:focus,
.form-left select:focus,
.form-right textarea:focus {
  outline: none;
  border-color: #D29B20;
  box-shadow: 0 0 0 4px rgba(210, 155, 32, 0.1);
  transform: translateY(-2px);
}

.form-left input::placeholder,
.form-right textarea::placeholder {
  color: #999;
}

.form-left select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D29B20' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 45px;
}

.form-right {
  grid-column: 2;
  grid-row: 1 / -1;
}

.form-right textarea {
  min-height: 100%;
  resize: vertical;
  line-height: 1.8;
}

.form-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.form-submit button {
  background: linear-gradient(to right, #D29B20, #b8850f);
  color: #ffffff;
  border: none;
  padding: 16px 80px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 20px rgba(210, 155, 32, 0.3);
  position: relative;
  overflow: hidden;
}

.form-submit button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.form-submit button:hover::before {
  left: 100%;
}

.form-submit button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(210, 155, 32, 0.4);
}

.form-submit button:active {
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 968px) {
  .quotation-form {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-right {
    grid-column: 1;
    grid-row: auto;
  }

  .form-right textarea {
    min-height: 200px;
  }

  .quotation-container {
    padding: 35px 25px;
  }

  .quotation-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .quotation-container::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .quotation-section {
    padding: 30px 15px;
  }

  .quotation-container {
    padding: 30px 20px;
    border-radius: 8px;
  }

  .quotation-title {
    font-size: 28px;
  }

  .form-submit button {
    width: 100%;
    padding: 16px 40px;
  }
}

/* Input validation states */
.form-left input:invalid:not(:placeholder-shown),
.form-left select:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}

.form-left input:valid:not(:placeholder-shown),
.form-left select:valid {
  border-color: #27ae60;
}

/* Loading state for submit button */
.form-submit button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Add subtle animation to form fields */
.form-left > *,
.form-right > * {
  animation: fadeIn 0.5s ease-out backwards;
}

.form-left > *:nth-child(1) { animation-delay: 0.1s; }
.form-left > *:nth-child(2) { animation-delay: 0.15s; }
.form-left > *:nth-child(3) { animation-delay: 0.2s; }
.form-left > *:nth-child(4) { animation-delay: 0.25s; }
.form-left > *:nth-child(5) { animation-delay: 0.3s; }
.form-left > *:nth-child(6) { animation-delay: 0.35s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}