/* ============================================================
   TRAACO — contact.css | Contact Page Specific Styles
   ============================================================ */

/* ── Anchor scroll offset — clears the fixed navbar on jump ── */
#contact-form {
  scroll-margin-top: 76px; /* matches desktop nav height */
}
@media (max-width: 767px) {
  #contact-form {
    scroll-margin-top: 68px; /* matches mobile nav height */
  }
}

/* ── Form Container ── */
.contact-form-container {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  transition: border-color 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow   0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.contact-form-container:hover {
  border-color: rgba(201,168,76,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ── Form Groups ── */
.form-group { margin-bottom: 1.5rem; position: relative; }
.form-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #F0ECE4;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-label .required { color: #C9A84C; margin-left: 2px; }

/* ── Base input / select ── */
.form-input,
.form-select {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #F0ECE4;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}
.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #C9A84C;
  background: rgba(201,168,76,0.05);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-input.valid,   .form-select.valid   { border-color: rgba(37,211,102,0.5); }
.form-input.invalid, .form-select.invalid { border-color: rgba(220,38,38,0.7); background: rgba(220,38,38,0.04); }
.form-input::placeholder { color: #555; }

/* ── Phone group with +91 prefix ── */
.phone-group {
  display: flex;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.phone-group:focus-within {
  border-color: #C9A84C;
  background: rgba(201,168,76,0.04);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.phone-group.valid   { border-color: rgba(37,211,102,0.5); }
.phone-group.invalid { border-color: rgba(220,38,38,0.7); background: rgba(220,38,38,0.04); }

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  background: rgba(201,168,76,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
  color: #C9A84C;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  user-select: none;
  letter-spacing: 0.02em;
}
.phone-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.9rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #F0ECE4;
}
.phone-input::placeholder { color: #555; }

/* ── Select ── */
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23C9A84C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}
.form-select option { background: #0F0F0F; color: #F0ECE4; }

/* ── Field errors ── */
.field-error {
  display: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.76rem;
  color: #f87171;
  margin-top: 0.35rem;
  padding-left: 0.2rem;
}
.field-error.show { display: block; animation: slideDown 0.25s ease; }

/* ── Submit button ── */
.form-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #C9A84C 0%, #d4aa55 50%, #C9A84C 100%);
  background-size: 200% 100%;
  color: #0F0F0F;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.form-submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s ease;
  border-radius: inherit;
}
.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(201,168,76,0.45);
  background-position: 100% 0;
}
.form-submit-btn:active  { transform: translateY(0); box-shadow: none; }
.form-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Status banners ── */
.success-message {
  background: rgba(37,211,102,0.08);
  border: 1px solid rgba(37,211,102,0.3);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.75rem;
  color: #25D366;
  font-size: 0.88rem;
  font-family: 'Poppins', sans-serif;
  display: none;
  align-items: center;
  gap: 10px;
}
.success-message.show { display: flex; animation: slideDown 0.4s ease; }

.error-message {
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.75rem;
  color: #f87171;
  font-size: 0.88rem;
  font-family: 'Poppins', sans-serif;
  display: none;
  align-items: center;
  gap: 10px;
}
.error-message.show { display: flex; animation: slideDown 0.4s ease; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Spinner ── */
.btn-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(15,15,15,0.25);
  border-top-color: #0F0F0F;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Contact info cards ── */
.contact-info-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
  text-decoration: none;
}
.contact-info-card:hover {
  border-color: rgba(201,168,76,0.2);
  transform: translateX(5px);
  background: rgba(201,168,76,0.025);
}
.contact-icon-wrapper {
  width: 46px; height: 46px; min-width: 46px;
  border-radius: 12px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

/* ── Trust badge strip ── */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50px;
  padding: 6px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  color: #9A9A9A;
}
.trust-dot {
  width: 6px; height: 6px; min-width: 6px;
  border-radius: 50%;
  background: #25D366;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.4); }
}