/* ========================
   CONTACT FORM
======================== */
.contact p {
  color: red;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing);
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 16px var(--shadow);
}

/* Input group wrapper */
.input-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Full-width override for textarea */
.full-width {
  grid-column: 1 / -1;
}

/* Floating labels */
.input-group label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 1rem;
  color: var(--text);
  pointer-events: none;
  transition: all 0.2s ease;
  background: white;
  padding: 0 0.25rem;
}

/* When input is focused or filled */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label,
.input-group select:focus + label,
.input-group select:not([value=""]) + label {
  top: -0.6rem;
  left: 0.5rem;
  font-size: 0.75rem;
  color: var(--primary);
}

/* Inputs, selects, textarea */
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 1rem 0.75rem 0.5rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  box-shadow: 0 2px 4px var(--shadow);
  width: 100%;
}

/* Button styling */
.contact-form button {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: var(--highlight);
}

/* CONTACT PAGE CONFIRMATION */
.modal {
  background: #0d1d3f4d;
}

.modal-content {
  background: var(--background);
}

.input-group {
  padding: 1rem;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}
/* confirmation message */
#confirmation-banner .confirmation-message {
  background: #bcdbf3;
  padding: 1rem;
  border-radius: 8px;
  color: #1f4593;
  font-weight: 500;
  text-align: center;
  margin-bottom: 1rem;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact spinner */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(247, 250, 252, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #ccc;
  border-top: 6px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
