* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: radial-gradient(
      circle at top,
      rgba(255,255,255,0.04),
      transparent 40%
    ),
    #0a0a0a;
  color: #ffffff;
  min-height: 100vh;
}

.back-link {
  color: #9ca3af;
  font-size: 0.8rem;
  text-decoration: none;
  margin-bottom: 20px;
}

.head>p i {
    padding-right: 2px;
    font-size: xx-small;
}

.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 80px;
}

/* Headings */
.contact-page h1 {
  font-size: 4.7rem;
  line-height: 1.0;
  margin: 16px 0;
}

.subtitle {
  color: #9ca3af;
  /* max-width: 480px; */
  margin-bottom: 40px;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #9ca3af;
  text-transform: uppercase;
}

.form-group select {
  background: linear-gradient(180deg, #111, #0b0b0b);
  border: 1px solid rgba(255,255,255,0.08);
  color: #e5e7eb;
  padding: 12px 14px;
  font-size: 0.85rem;
  outline: none;
  appearance: none;
  cursor: pointer;
}

/* dropdown options */
.form-group select option {
  background: #0f172a;
  color: #e5e7eb;
}

input,
select,
textarea {
  background: linear-gradient(180deg, #111, #0b0b0b);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 14px;
  color: #fff;
  font-size: 0.85rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.25);
}

textarea {
    resize: none;
    overflow: hidden;
}

/* Button */
.submit-btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 14px;
  font-weight: 700;
  font-size: 0.90rem;
  cursor: pointer;
}

/* Right side */
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-side>.contact-info i {
    padding-right: 6px;
}

.contact-info h4{
  margin-bottom: 15px;
  font-size: 0.98rem;
  font-weight: 700;
}

.info-card h4 {
  margin-bottom: 15px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #9ca3af;
}

.contact-info p {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-bottom: 8px;
  line-height: 25px;
}

.info-card {
  background: linear-gradient(180deg, #111, #0b0b0b);
  border: 1px solid rgba(255,255,255,0.06);
  color: #9ca3af;
  padding: 24px;
  max-width: 240px;
  font-size: 0.75rem;
}

@media (max-width: 768px) {

  /* Page padding */
  .contact-page {
    padding: 48px 16px;
  }

  /* Header */
  .contact-page h1 {
    font-size: 2.6rem;
    line-height: 1.1;
  }

  .subtitle {
    font-size: 0.9rem;
    margin-bottom: 32px;
  }

  /* Grid → Stack */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Form rows stack */
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Inputs feel finger-friendly */
  input,
  select,
  textarea {
    padding: 16px;
    font-size: 0.9rem;
  }

  /* Button full-width & comfy */
  .submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 0.95rem;
  }

  /* Right side spacing */
  .contact-side {
    gap: 24px;
  }

  .info-card {
    max-width: 100%;
    padding: 20px;
  }

  /* Contact info text */
  .contact-info p {
    font-size: 0.85rem;
  }

  /* Back link spacing */
  .back-link {
    font-size: 0.75rem;
    margin-bottom: 12px;
  }
}

.contact-page {
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.submit-btn {
  position: relative;
  overflow: hidden;

  background: #ffffff;
  color: #000;
  border: none;
  padding: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;

  z-index: 1;
}

.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #111; /* hover color */
  
  transform: scale(0);
  transform-origin: bottom right;
  transition: transform 0.45s ease;

  z-index: -1;
}

.submit-btn:hover::before {
  transform: scale(1);
}

.submit-btn:hover {
  color: #fff;
}