/* Reusable contact modal — Transactions brand (yellow / green) */

.contact-service-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 6500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.contact-service-modal.is-open {
  display: flex;
}

.contact-service-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  border: 2px solid #ffc107;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  padding: 1.75rem 1.5rem 1.5rem;
}

.contact-service-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: #e8f5e9;
  color: #28a745;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  font-weight: bold;
}

.contact-service-close:hover {
  background: #28a745;
  color: #fff;
}

.contact-service-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: #333;
}

.contact-service-subtitle {
  margin: 0 0 1.25rem;
  color: #666;
  font-size: 0.9rem;
}

.contact-service-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
}

.contact-service-topics {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.contact-service-topic-btn {
  flex: 1;
  min-width: 5.5rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid #ffc107;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-service-topic-btn:hover {
  background: #fff8e1;
}

.contact-service-topic-btn.is-selected {
  background: #ffc107;
  border-color: #ffc107;
  color: #333;
}

.contact-service-field {
  margin-bottom: 1rem;
}

.contact-service-input,
.contact-service-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

.contact-service-input:focus,
.contact-service-textarea:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.15);
}

.contact-service-textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-service-error {
  display: none;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: #f8d7da;
  color: #721c24;
  font-size: 0.85rem;
}

.contact-service-error.is-visible {
  display: block;
}

.contact-service-submit {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #333;
  border-radius: 8px;
  background: #333;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-service-submit:hover {
  background: #555;
  border-color: #555;
}
