.contact {
  background: #f9f9f9;
  padding: 6rem 1rem;
}

.contact-card {
  background: #fff;
  max-width: 800px;
  margin: auto;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact h1 {
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.contact label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: #777;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #eee;
  border-radius: 4px;
  font-size: 1rem;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: #03a9f4;
}

.contact button {
  margin-top: 2rem;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: #03a9f4;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact button:hover {
  background: #0381fe;
}

/* --- Minimal modal styles (Bootstrap-free) --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
  background: rgba(0, 0, 0, 0.5);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  max-width: 500px;
  width: 90%;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
}

.modal-header,
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* --- Success Modal Styling --- */
.success-modal {
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}

.success-modal .modal-header {
  border-bottom: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: -1.5rem;
}

.success-modal .modal-title {
  font-size: 1.4rem;
  font-weight: 600;
}

.success-modal .btn-close {
  font-size: 1.4rem;
  line-height: 1;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0.6;
}

.success-modal .btn-close:hover {
  opacity: 1;
}

.success-modal .modal-body {
  font-size: 1.05rem;
  color: #555;
  margin: 1rem 0 2.25rem;
}

.success-modal .modal-footer {
  border-top: none;
}

.modal-btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  background-color: #03a9f4;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.modal-btn:hover {
  background-color: #0381fe;
  transform: translateY(-1px);
}


@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
