#contact-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 800px;
}

#contact-form p {
    gap: 0;
    margin: 5px 0 0 0;
}

#contact-form button {
    margin: 15px 0 0 0;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

#contact-form button {
  padding: 12px;
  font-size: 16px;
  background-color: #2e7d32;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#contact-form button:hover {
  opacity: 0.9;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.close-modal {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.divMainK {
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    display: flex;
    justify-content: center;
    height: auto;
    padding-top: 40px;
}

.divHead.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* horizontāli centrs */
  gap: 0; /* starp kolonnām */
}
/* Centrs visiem containeriem mazākiem par 991px */
@media (max-width: 990px) {
  .divHead.row {
    justify-content: center !important; /* force centering */
    text-align: left; /* teksta saturs */
        flex-direction: column;
    align-items: center; /* saturu horizontāli centrs */
  }

  /* Bootstrap container col-* pārdefinēšana */
  .divHead.row > .container {
    max-width: 90%; /* neļauj pilnā platumā */
    margin-left: auto;
    margin-right: auto; /* horizontālais centrs */
  }
}

