/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* ===== PAGE BACKGROUND ===== */
body {
  min-height: 100vh;
  background: linear-gradient(120deg, #e8f2ff, #f4f8fb);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== CONTAINER ===== */
.contact-container {
  width: 100%;
  padding: 20px;
}

/* ===== CONTACT CARD ===== */
.contact-box {
  max-width: 480px;
  background: #ffffff;
  margin: auto;
  padding: 35px;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(13, 110, 253, 0.15);
  border-top: 6px solid #0d6efd;
}

/* ===== HEADING ===== */
.contact-box h1 {
  text-align: center;
  margin-bottom: 8px;
  color: #0d6efd;
  font-size: 28px;
}

.contact-box p {
  text-align: center;
  margin-bottom: 28px;
  color: #475569;
  font-size: 15px;
}

/* ===== INPUT GROUP ===== */
.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
}

/* ===== INPUTS ===== */
.input-group input,
.input-group textarea {
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  border: 1.5px solid #dbeafe;
  font-size: 14px;
  background: #f8fbff;
  transition: all 0.3s ease;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #94a3b8;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #0fb9b1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 185, 177, 0.15);
}

/* ===== TEXTAREA ===== */
textarea {
  resize: none;
  height: 120px;
}

/* ===== BUTTON ===== */
button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #0d6efd, #0fb9b1);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;

  /* FIX */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.35);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.25);
}

/* ===== BUTTON SPINNER ===== */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== SUCCESS MESSAGE (ANIMATED) ===== */
.success-message {
  display: none;
  text-align: center;
  padding: 30px 20px;
  background: #ecfdf5;
  border-radius: 14px;
  border: 1.5px solid #10b981;
}

/* CHECKMARK */
.checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
}

.checkmark svg {
  width: 100%;
  height: 100%;
}

.checkmark-circle {
  fill: none;
  stroke: #10b981;
  stroke-width: 4;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: drawCircle 0.6s ease-out forwards;
}

.checkmark-check {
  fill: none;
  stroke: #10b981;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: drawCheck 0.4s ease-out 0.6s forwards;
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.success-message p {
  font-size: 16px;
  font-weight: 600;
  color: #065f46;
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
  .contact-box {
    padding: 25px;
  }

  .contact-box h1 {
    font-size: 24px;
  }
}
