/* ========================================================
   CODEHIVE — Dedicated Modern Contact Page Stylesheet
   ======================================================== */

.contact-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Contact Hero */
.contact-hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px;
}

.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 1.8px;
  color: #c25408;
  background: #fff4ea;
  border: 1px solid #fed7aa;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.contact-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 900;
  color: #1c1917;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin: 0 0 14px;
}

.contact-hero p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: #6c635a;
  line-height: 1.6;
  margin: 0;
}

/* Alert notices */
.contact-alert {
  padding: 16px 20px;
  border-radius: 14px;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.contact-alert.success {
  background: #effdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.contact-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.alert-content strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 36px;
  align-items: start;
}

/* Left: Contact Form Card */
.contact-form-card {
  background: #ffffff;
  border: 1px solid #ede5dc;
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: 0 12px 36px rgba(28, 25, 23, 0.04);
}

.form-head {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f3ece4;
}

.form-head h2 {
  font-size: 24px;
  font-weight: 850;
  color: #1e1b18;
  margin: 0 0 6px;
  letter-spacing: -0.6px;
}

.form-head p {
  color: #78716c;
  font-size: 14px;
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.c-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.c-field label {
  font-size: 13px;
  font-weight: 750;
  color: #37322d;
  display: flex;
  align-items: center;
  gap: 4px;
}

.c-field label .req {
  color: #ea580c;
  font-weight: 800;
}

.phone-hint {
  font-size: 11px;
  color: #a8a29e;
  font-weight: 600;
}

.c-field input,
.c-field select,
.c-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid #ded5cb;
  border-radius: 12px;
  background: #faf8f5;
  color: #1f1b17;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .18s, background .18s, box-shadow .18s;
}

.c-field input:focus,
.c-field select:focus,
.c-field textarea:focus {
  border-color: #ff7a18;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.15);
}

.c-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

/* Phone input with fixed +91 prefix */
.phone-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #ded5cb;
  border-radius: 12px;
  background: #faf8f5;
  overflow: hidden;
  transition: border-color .18s, background .18s, box-shadow .18s;
}

.phone-input-wrap:focus-within {
  border-color: #ff7a18;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.15);
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #f1ebd7;
  color: #63584e;
  font-size: 13px;
  font-weight: 750;
  border-right: 1px solid #e2d9cd;
  user-select: none;
}

.phone-input-wrap input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-left: 12px;
}

.field-hint {
  font-size: 11px;
  color: #8c827a;
}

.field-hint.valid {
  color: #16a34a;
}

.field-hint.invalid {
  color: #dc2626;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
}

.select-wrap:after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #8c827a;
  pointer-events: none;
}

.char-count {
  font-size: 11px;
  color: #8c827a;
  text-align: right;
  margin-top: 3px;
}

/* Security Captcha Section */
.captcha-box {
  display: grid;
  grid-template-columns: auto minmax(130px, 1fr);
  gap: 14px;
  align-items: center;
  background: #fff8f0;
  border: 1.5px solid #fed7aa;
  border-radius: 14px;
  padding: 12px 14px;
}

.captcha-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #fbd38d;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(255, 122, 24, 0.08);
}

.captcha-icon {
  font-size: 16px;
}

.captcha-question {
  font-size: 15px;
  font-weight: 850;
  color: #9c4206;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.btn-refresh-captcha {
  background: #fff2e0;
  border: 1px solid #fcd34d;
  color: #b45309;
  font-size: 12px;
  font-weight: 750;
  padding: 4px 9px;
  border-radius: 7px;
  cursor: pointer;
  transition: all .15s;
}

.btn-refresh-captcha:hover {
  background: #fde68a;
  color: #78350f;
}

.captcha-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.captcha-input {
  min-height: 42px !important;
  background: #ffffff !important;
  font-weight: 750;
  font-size: 15px !important;
  letter-spacing: 1px;
}

.captcha-subtext {
  font-size: 10px;
  color: #8c7e73;
}

/* Submit Actions */
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.btn-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  background: linear-gradient(135deg, #ff7a18, #f59e0b);
  color: #ffffff;
  border: 0;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 122, 24, 0.28);
  transition: transform .18s, box-shadow .18s;
}

.btn-contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 122, 24, 0.38);
}

.btn-contact-submit:active {
  transform: translateY(0);
}

.privacy-note {
  font-size: 12px;
  color: #8c827a;
  text-align: center;
  margin: 0;
}

/* Right: Direct Channels Cards */
.contact-side-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid #ede5dc;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.03);
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 850;
  color: #1e1b18;
  margin: 0 0 16px;
}

.contact-channel-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.channel-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff4ea;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.channel-body strong {
  display: block;
  font-size: 14px;
  color: #27211c;
  margin-bottom: 2px;
}

.channel-body a {
  color: #ea580c;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.channel-body a:hover {
  text-decoration: underline;
}

.channel-body small {
  display: block;
  font-size: 11px;
  color: #8c827a;
  margin-top: 2px;
}

.channel-body p {
  margin: 0;
  font-size: 12px;
  color: #63584e;
  line-height: 1.45;
}

/* Quick Help / BeeGuide Promo */
.card-beeguide-promo {
  background: radial-gradient(circle at 90% 15%, rgba(255, 175, 59, 0.2), transparent 45%), linear-gradient(135deg, #24201c, #3a2c20);
  color: #ffffff;
  border-color: #554433;
}

.card-beeguide-promo h3 {
  color: #ffbf75;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-beeguide-promo p {
  color: #d6ccbe;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.btn-open-beeguide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #ff8c26;
  color: #241606;
  border-radius: 10px;
  font-weight: 850;
  font-size: 12px;
  text-decoration: none;
  transition: background .15s;
}

.btn-open-beeguide:hover {
  background: #ffab57;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .contact-main {
    padding: 24px 16px 60px;
  }
  .contact-form-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .captcha-box {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .captcha-badge {
    justify-content: space-between;
  }
}

