/* Contact page styles - scoped to body.contact-page so it won't affect other pages */
body.contact-page .contact-main{
  padding-top: 140px; /* leaves space for sticky header */
  padding-bottom: 80px;
}

body.contact-page .contact-card{
  max-width: 820px;
  margin: 0 auto;
  border-radius: 22px;
  padding: 28px 22px;
  border: 1px solid rgba(255, 59, 48, 0.55);
  background: rgba(13, 16, 24, 0.55);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}

body.contact-page .contact-title{
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  color: #fff;
}

body.contact-page .contact-subtitle{
  margin: 10px 0 0;
  color: rgba(255,255,255,0.72);
  font-size: 16px;
}

body.contact-page .contact-alert{
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
}

body.contact-page .contact-alert--success{
  background: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: rgba(255,255,255,0.92);
}

body.contact-page .contact-form{
  margin-top: 22px;
}

body.contact-page .contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  /* Add breathing room before the Message field */
  margin-bottom: 16px;
}

body.contact-page .contact-field label{
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  margin: 0 0 8px;
}

body.contact-page .contact-field input,
body.contact-page .contact-field textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(8,10,14,0.55);
  color: rgba(255,255,255,0.92);
  padding: 12px 12px;
  outline: none;
}

/* Placeholders should read like placeholders (lighter opacity) */
body.contact-page .contact-field input::placeholder,
body.contact-page .contact-field textarea::placeholder{
  color: rgba(255,255,255,0.42);
  opacity: 1;
}
body.contact-page .contact-field input::-webkit-input-placeholder,
body.contact-page .contact-field textarea::-webkit-input-placeholder{
  color: rgba(255,255,255,0.42);
  opacity: 1;
}

body.contact-page .contact-field textarea{
  resize: vertical;
  min-height: 160px;
}

body.contact-page .contact-field input:focus,
body.contact-page .contact-field textarea:focus{
  border-color: rgba(255, 59, 48, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12);
}

body.contact-page .contact-actions{
  margin-top: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* Make the Send Message button cleaner (match the header login vibe)
   by removing the default cut-corner clip-path only on this page. */
body.contact-page .contact-actions .rainbow-gradient-btn,
body.contact-page .contact-actions .rainbow-gradient-btn::before,
body.contact-page .contact-actions .rainbow-gradient-btn::after,
body.contact-page .contact-actions .rainbow-gradient-btn span{
  clip-path: none !important;
  border-radius: 12px !important;
}

body.contact-page .contact-actions .rainbow-gradient-btn span{
  /* keep it crisp like the header login button */
  height: 44px;
  line-height: 44px;
  padding: 0 28px;
  background: rgba(10,10,14,0.72);
  border: 1px solid rgba(255,59,48,0.35);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(255,59,48,0.16);
}

body.contact-page .contact-actions .rainbow-gradient-btn{
  min-width: 180px;
}

body.contact-page .contact-back{
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

body.contact-page .contact-back:hover{
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 767px){
  body.contact-page .contact-main{
    padding-top: 110px;
  }
  body.contact-page .contact-title{
    font-size: 32px;
  }
  body.contact-page .contact-grid{
    grid-template-columns: 1fr;
  }
}
