/* Shared IndiaAgroNet lead capture (Contact-Us style) — use with body.contact-form-page */

:root {
  --submitpr-accent-red: #e50000;
  --submitpr-bg: #165119;
  --submitpr-input-underline: rgba(255, 255, 255, 0.55);
  --submitpr-text-muted: rgba(255, 255, 255, 0.75);
  --submitpr-text: #ffffff;
  --submitpr-text-strong: #ffffff;
}

body.contact-form-page {
  background: var(--submitpr-bg) !important;
  color: #fff;
}

.main-news-sec.detailsmainsec {
  background: var(--submitpr-bg);
  padding-top: 34px;
  padding-bottom: 34px;
}

.contact-form-page .main-news-sec .news-wrap > .heading h1 {
  color: #ffffff !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
}

.lead-form-intro {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 1rem;
  text-align: center;
}

.submit-pr-page {
  font-family: "Inter", sans-serif;
  color: var(--submitpr-text);
  border-radius: 10px;
  padding: 28px 22px;
  margin-top: 18px;
  background: transparent;
}

.submit-pr-page .custom-input-group {
  margin-bottom: 2rem;
}

.submit-pr-page .form-control-custom {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--submitpr-input-underline);
  border-radius: 0;
  color: var(--submitpr-text-strong);
  padding: 10px 0;
  transition: border-color 0.3s ease;
}

.submit-pr-page .form-control-custom:focus {
  background: transparent;
  box-shadow: none;
  border-color: #ffffff;
  color: #ffffff;
}

.submit-pr-page .form-control-custom::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.submit-pr-page .file-upload-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  margin-top: 1rem;
}

.submit-pr-page .file-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}

.submit-pr-page .file-status {
  flex: 1;
  min-width: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.submit-pr-page .file-label {
  font-weight: 800;
  margin-bottom: 0;
  white-space: nowrap;
  margin-left: auto;
  text-align: right;
}

.submit-pr-page .btn-choose {
  background-color: rgba(255, 255, 255, 0.14);
  color: white;
  border: none;
  padding: 8px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.submit-pr-page .btn-choose:hover {
  background-color: rgba(255, 255, 255, 0.22);
}

.submit-pr-page .hint-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  margin-top: 8px;
}

.submit-pr-page .captcha-wrap {
  margin-top: 2rem;
  padding: 10px;
  display: inline-block;
  width: auto;
}

.submit-pr-page .btn-submit {
  background-color: var(--submitpr-accent-red);
  color: white;
  border: none;
  padding: 12px 40px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px;
  margin-top: 1.5rem;
  font-size: 1rem;
  transition: transform 0.1s, background-color 0.2s;
  display: inline-block;
}

.submit-pr-page .btn-submit:hover {
  background-color: #c80000;
  color: white;
}

.submit-pr-page .btn-submit:active {
  transform: scale(0.98);
}

@media (max-width: 576px) {
  .submit-pr-page .file-upload-box {
    gap: 10px;
    flex-wrap: wrap;
  }
  .submit-pr-page .file-input-wrapper {
    flex-basis: 100%;
    flex-wrap: wrap;
  }
  .submit-pr-page .file-label {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }
}

.form-msg {
  display: none;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
  white-space: pre-line;
}

.form-msg-success {
  display: block;
  background: rgba(22, 163, 74, 0.18);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #ffffff;
}

.form-msg-error {
  display: block;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #ffffff;
}

.btn-submit[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit.is-loading {
  position: relative;
  padding-left: 52px;
}

.btn-submit.is-loading::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-50%);
  animation: leadFormBtnSpin 0.8s linear infinite;
}

@keyframes leadFormBtnSpin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.dept-radio-group {
  margin-top: 10px;
  padding: 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.dept-radio-title {
  font-weight: 800;
  margin-bottom: 10px;
}

.dept-radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

@media (max-width: 576px) {
  .dept-radio-grid {
    grid-template-columns: 1fr;
  }
}

.dept-radio-item {
  position: relative;
  margin: 0;
}

.dept-radio-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dept-radio-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 14px;
  border-radius: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.98);
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.dept-radio-box::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.dept-radio-box:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dept-radio-item input:focus + .dept-radio-box {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.dept-radio-item input:checked + .dept-radio-box {
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 2px rgba(255, 255, 255, 0.12);
}

.dept-radio-item input:checked + .dept-radio-box::before {
  border-color: rgba(255, 255, 255, 0.95);
  background: var(--submitpr-accent-red);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='white' d='M7.6 13.7 3.9 10l1.4-1.4 2.3 2.3 7-7L16 5.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}
