/* Tarjouspyyntö Modal Styles */
.quote-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.quote-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.quote-modal-content {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.quote-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 2px solid #e9ecef;
}

.quote-modal-header h2 {
  font-size: 1.8rem;
  color: #212529;
  margin: 0;
}

.quote-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #6c757d;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.quote-modal-close:hover {
  background: #f8f9fa;
  color: #212529;
  transform: rotate(90deg);
}

.quote-form {
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-tasova);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 205, 41, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.quote-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e9ecef;
}

.btn-primary,
.btn-secondary {
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
}

.btn-primary {
  background: var(--color-tasova);
  color: #212529;
  box-shadow: 0 4px 15px rgba(255, 205, 41, 0.3);
}

.btn-primary:hover {
  background: #e6d82f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 205, 41, 0.4);
}

.btn-primary:disabled {
  background: #dee2e6;
  color: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: #f8f9fa;
  color: #495057;
  border: 2px solid #dee2e6;
}

.btn-secondary:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .quote-modal-content {
    margin: 1rem;
    max-height: 85vh;
  }

  .quote-modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .quote-modal-header h2 {
    font-size: 1.5rem;
  }

  .quote-form {
    padding: 1.5rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .quote-modal-actions {
    flex-direction: column-reverse;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

/* Success message */
.quote-success {
  text-align: center;
  padding: 3rem 2rem;
}

.quote-success i {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 1rem;
}

.quote-success h3 {
  font-size: 1.5rem;
  color: #212529;
  margin-bottom: 0.5rem;
}

.quote-success p {
  color: #6c757d;
  margin-bottom: 2rem;
}
