/* =========================
   CONTACT MODAL – CLEAN UI
   ========================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* MODAL BOX */
.modal-box {
  position: relative;
  width: 420px;
  background: #131313;
  padding: 42px 32px;
  border-radius: 14px;
  border: 1px solid #1f1f1f;

  box-shadow:
    0 0 0 1px rgba(49, 251, 0, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(49, 251, 0, 0.12);
}

/* TITLE */
.modal-title {
  color: #ffffff;
  text-align: center;
  font-size: 35px;
  font-weight: 600;
  letter-spacing: 0.6px;
  margin-bottom: 36px;
  max-width: 550px;
}


/* FORM */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* INPUTS */
.modal-form input {
  height: 48px;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 0 16px;
  color: #ffffff;
  font-size: 14px;
  transition: border 0.25s ease;
}

.modal-form input::placeholder {
  color: #7a7a7a;
}

.modal-form input:focus {
  outline: none;
  border-color: #31fb00;
}
.modal-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  resize: none;
  min-height: 120px;
  font-family: inherit;
}

.modal-form textarea::placeholder {
  color: #888;
}


/* BUTTON */
.modal-form button {
  height: 48px;
  background: #131313;
  border: 1px solid #31fb00;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-form button:hover {
  background: rgba(49, 251, 0, 0.12);
  color: #31fb00;
}

/* CLOSE BUTTON */
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  color: #8a8a8a;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #ffffff;
}

/* === MODAL FONTOVI === */

/* NASLOV */
.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 26px; /* može 24–28 po želji */
  color: #ffffff;
}

/* INPUTI + PLACEHOLDER */
.modal-form input {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: #ffffff;
}

.modal-form input::placeholder {
  font-family: 'Lato', sans-serif;
  color: rgba(255,255,255,0.6);
}

/* DUGME */
.modal-form button {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}
.modal-title {
  margin-bottom: 24px;
}
.modal-form input {
  height: 48px;
}
.form-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
}

.form-message.success {
  background: rgba(0, 255, 0, 0.1);
  color: #00ff88;
  border: 1px solid #00ff88;
}

.form-message.error {
  background: rgba(255, 0, 0, 0.1);
  color: #ff5555;
  border: 1px solid #ff5555;
}

@media (max-width: 991px) {
  .modal-box {
    width: 90%;
    max-width: 420px;
    padding: 28px 24px;
  }

  .modal-title {
    font-size: 22px;
  }

  .modal-form input {
    font-size: 14px;
    height: 46px;
  }

  .modal-form button {
    height: 46px;
    font-size: 14px;
  }
}
@media (max-width: 479px) {
  .modal-box {
    width: 92%;
    padding: 24px 20px;
    border-radius: 14px;
  }

  .modal-title {
    font-size: 20px;
    text-align: center;
  }

  .modal-form input {
    font-size: 14px;
    height: 44px;
  }

  .modal-form button {
    height: 44px;
    font-size: 13px;
    letter-spacing: 0.8px;
  }

  .modal-close {
    top: 12px;
    right: 14px;
    font-size: 18px;
  }
}
.form-message {
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.form-message.success {
  color: #31fb00;
}

.form-message.error {
  color: #ff4d4d;
}

@media (max-width: 479px) {
  .modal-box {
    animation: modalMobile 0.25s ease-out;
  }
}

@keyframes modalMobile {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #131313;
  border: 1px solid #31fb00;
  box-shadow: 0 0 25px rgba(49, 251, 0, 0.25);
  border-radius: 18px;
  padding: 36px 32px;
  width: 100%;
  max-width: 460px;
  position: relative;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
  opacity: 1;
}
.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #ffffff;
  margin-bottom: 24px;
}

.modal-form input,
.modal-form button {
  font-family: 'Lato', sans-serif;
}
@media (max-width: 991px) {
  .modal-box {
    max-width: 420px;
    padding: 30px 26px;
  }

  .modal-title {
    font-size: 23px;
  }
}
@media (max-width: 479px) {
  .modal-box {
    width: 92%;
    max-width: none;
    padding: 28px 22px;
    border-radius: 16px;
  }

  .modal-title {
    font-size: 21px;
    text-align: center;
  }

  .modal-form input {
    height: 46px;
    font-size: 14px;
  }

  .modal-form button {
    height: 46px;
    font-size: 13px;
    letter-spacing: 0.8px;
  }

  .modal-close {
    top: 14px;
    right: 16px;
    font-size: 18px;
  }
}
