/* THEME VARIABLES */
:root {
    --bg: #e8edf5;
    --card: #ffffff;
    --accent: linear-gradient(135deg, #3c7df0, #5ea6ff);
    --accent-solid: #4b8df3;
    --accent-soft: rgba(75, 141, 243, 0.16);
    --text-dark: #111827;
    --muted: #6b7280;
    --radius: 16px;
    --shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  }
  
  /* RESET */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  /* BASE */
  body {
    margin: 0;
    padding: 20px;
    font-family: "Inter", system-ui, sans-serif;
    background:
      radial-gradient(circle at top left, #f5f7fb 0, transparent 55%),
      radial-gradient(circle at bottom right, #d9e6ff 0, transparent 55%),
      var(--bg);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
  }
  
  /* global background glow */
  body::before {
    content: "";
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 138, 243, 0.18), transparent 60%);
    top: -140px;
    right: -180px;
    filter: blur(4px);
    pointer-events: none;
    z-index: -1;
  }
  
  /* ANIMATIONS */
  @keyframes fadeSlideUp {
    from {
      opacity: 0;
      transform: translateY(16px) scale(0.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
  
  @keyframes marquee {
    from { transform: translateX(100%); }
    to   { transform: translateX(-100%); }
  }
  
  @keyframes headerSheen {
    0% {
      opacity: 0;
      transform: translateX(-40%);
    }
    20% {
      opacity: 1;
      transform: translateX(0%);
    }
    55% {
      opacity: 0;
      transform: translateX(40%);
    }
    100% {
      opacity: 0;
      transform: translateX(40%);
    }
  }
  
  /* HEADER */
  header {
    max-width: 960px;
    margin: 20px auto 16px;
    padding: 26px 22px;
    border-radius: 20px;
    background: var(--accent);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
    animation: fadeSlideUp 0.45s ease-out forwards;
  }
  
  /* subtle sheen moving across header */
  header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.28), transparent 60%);
    mix-blend-mode: screen;
    opacity: 0;
    transform: translateX(-30%);
    animation: headerSheen 3.4s ease-in-out infinite 1.2s;
  }
  
  header h1 {
    margin: 0;
    font-weight: 700;
    font-size: 1.95rem;
    letter-spacing: -0.03em;
  }
  
  header .contact,
  header .subtitle {
    margin-top: 6px;
    font-size: 0.96rem;
  }
  
  /* pill subtitle */
  .subtitle-2 {
    display: inline-block;
    margin: 10px auto 0;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
  }
  
  /* MAIN WRAPPER */
  main {
    padding: 0 12px 30px;
  }
  
  /* HERO (if you’re using marquee text here) */
  .hero {
    max-width: 960px;
    margin: 0 auto 14px;
    text-align: center;
    animation: fadeSlideUp 0.45s ease-out forwards;
    animation-delay: 0.08s;
  }
  
  .marquee {
    display: inline-block;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
    box-shadow: var(--shadow);
    overflow: hidden;
    white-space: nowrap;
  }
  
  .marquee span {
    display: inline-block;
    animation: marquee 10s linear infinite;
  }
  
  /* IMAGE SECTION */
  .image-section {
    max-width: 860px;
    margin: 16px auto 18px;
    display: flex;
    justify-content: center;
    gap: 22px;
    padding: 0 12px;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.45s ease-out forwards;
    animation-delay: 0.12s;
  }
  
  .image-box {
    flex: 1 1 260px;
    max-width: 360px;
  }
  
  .image-box img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    transform-origin: center;
  }
  
  .image-box img:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.32);
    filter: saturate(1.08);
  }
  
  /* CARD LAYOUT – GENERIC (if you still use .form-section / .intro anywhere) */
  .form-section,
  .intro {
    max-width: 780px;
    margin: 18px auto;
    padding: 26px;
    background: radial-gradient(circle at top left, #f8fbff 0, #ffffff 60%);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 163, 184, 0.25);
    position: relative;
    overflow: hidden;
    animation: fadeSlideUp 0.45s ease-out forwards;
    animation-delay: 0.16s;
  }
  
  .form-section::before,
  .intro::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(147, 197, 253, 0.3), transparent 60%);
    opacity: 0.45;
    pointer-events: none;
  }
  
  .form-section:hover,
  .intro:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  }
  
  .form-section h2,
  .form-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.32rem;
    font-weight: 700;
  }
  
  /* SPECIFIC FORM WRAPPER FOR greenForm */
  #greenForm {
    max-width: 640px;
    margin: 0 auto;
    padding: 26px 22px 24px;
    background: radial-gradient(circle at top left, #f8fbff 0, #ffffff 60%);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeSlideUp 0.45s ease-out forwards;
    animation-delay: 0.18s;
  }
  
  /* FORM HEADER ALIGN IF NEEDED */
  #form-header {
    max-width: 640px;
    margin: 10px auto 8px;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
  }
  
  /* tweak if you really want left alignment: */
  /* #form-header { text-align: left; padding-left: 30%; } */
  
  /* FORM GRID + GROUPS */
  form {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    padding: 2px 0;
    border-radius: 12px;
    transition: background 0.15s ease, box-shadow 0.15s ease;
  }
  
  /* active/typing glow */
  .form-group:focus-within {
    background: rgba(239, 246, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.45);
  }
  
  /* labels */
  label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    display: block;
  }
  
  /* TWO COLUMN LAYOUT */
  .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 20px;
  }
  
  @media (max-width: 640px) {
    .grid-2 {
      grid-template-columns: 1fr;
    }
  }
  
  /* INPUTS */
  input,
  select {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.97rem;
    border-radius: 12px;
    border: 1px solid #d0d7e2;
    background: #f9fafb;
    transition:
      border-color 0.18s ease,
      box-shadow 0.18s ease,
      background 0.18s ease,
      transform 0.08s ease;
  }
  
  #userImage {
    width: 90%;
  }
  
  input:hover,
  select:hover {
    background: #f1f4f9;
  }
  
  input:focus,
  select:focus {
    border-color: var(--accent-solid);
    box-shadow: 0 0 0 3px rgba(75, 141, 243, 0.25);
    background: #ffffff;
    outline: none;
    transform: translateY(-1px);
  }
  
  /* FILE INPUT BUTTON */
  input[type="file"]::file-selector-button {
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    margin-right: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
    transition: 0.18s ease;
  }
  
  input[type="file"]::file-selector-button:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.55);
  }
  
  /* ERROR STATES */
  .error-field {
    border-color: #e63946 !important;
    background: #ffeaea !important;
  }
  
  .error-msg {
    margin-top: -4px;
    font-size: 0.83rem;
    color: #e63946;
    font-weight: 500;
  }
  
  /* CTA BUTTON */
  button {
    width: 100%;
    max-width: 260px;
    margin: 12px auto 0 auto;
    padding: 14px 18px;
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.02rem;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.4);
    transition:
      transform 0.18s ease,
      box-shadow 0.18s ease,
      opacity 0.18s ease;
  }
  
  button:hover {
    opacity: 0.94;
    transform: translateY(-2px);
    box-shadow: 0 24px 52px rgba(37, 99, 235, 0.48);
  }
  
  button:active {
    transform: translateY(0);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.4);
  }
  
  /* FOOTER */
  footer {
    margin-top: 26px;
    text-align: center;
  }
  
  footer p {
    font-size: 0.92rem;
    color: var(--muted);
  }
/* ===== Responsive layout — green-energy.css (match farmer form) ===== */

/* Tablets & small laptops */
@media (max-width: 900px) {
  body {
    padding: 16px 12px;
  }

  header {
    max-width: 100%;
    margin: 12px auto;
    padding: 20px 18px;
    border-radius: 18px;
  }

  .image-section {
    max-width: 100%;
    margin: 14px auto 18px;
    padding: 0 10px;
    gap: 16px;
    flex-wrap: wrap;
  }

  .image-box {
    flex: 1 1 260px;
    max-width: 320px;
  }

  .image-box img {
    width: 100%;
    height: 220px;
  }

  #greenForm {
    max-width: 100%;
    margin: 0 auto;
    padding: 22px 20px;
  }
}

/* Phones */
@media (max-width: 640px) {
  body {
    padding: 12px 10px;
  }

  header {
    width: 100%;
    margin: 10px auto 12px;
    padding: 18px 14px;
    border-radius: 16px;
  }

  header h1 {
    font-size: 1.45rem;
  }

  header .contact,
  header .subtitle {
    font-size: 0.9rem;
  }

  .subtitle-2 {
    font-size: 0.9rem;
    padding: 7px 12px;
    margin-top: 8px;
  }

  .hero,
  .image-section {
    text-align: center;
  }

  .image-section {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .image-box {
    max-width: 260px;
    width: 100%;
  }

  .image-box img {
    height: 190px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
  }

  #form-header {
    max-width: 100%;
    text-align: center;
    padding-left: 0;
    font-size: 1.2rem;
  }

  #greenForm {
    padding: 18px 14px;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    gap: 12px;
  }

  form {
    gap: 10px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  input,
  select {
    font-size: 0.95rem;
    padding: 10px 12px;
  }

  button {
    width: 100%;
    max-width: none;
    padding: 12px 16px;
    font-size: 1rem;
  }
}

/* Very small phones */
@media (max-width: 400px) {
  header {
    padding: 16px 12px;
    border-radius: 14px;
  }

  header h1 {
    font-size: 1.3rem;
  }

  .image-box {
    max-width: 220px;
  }

  .image-box img {
    height: 170px;
  }

  #greenForm {
    padding: 16px 12px;
  }
}
/* Hide native select & show custom dropdown only on mobile */
@media (max-width: 640px) {
  select { display: none !important; }
  .mobile-select { display: block !important; }
}

/* Hide custom dropdown on larger screens */
@media (min-width: 641px) {
  .mobile-select { display: none !important; }
}

/* Mobile dropdown design */
@media (max-width: 640px) {
  .mobile-select {
    width: 100%;
    position: relative;
    margin-top: 4px;
  }
  .custom-select-display {
    padding: 12px 14px;
    font-size: 0.96rem;
    font-weight: 600;
    border-radius: 11px;
    border: 1px solid #d4dae2;
    background: #ffffff;
    cursor: pointer;
  }
  .custom-select-display::after {
    content: "▾";
    float: right;
    font-size: 18px;
    color: var(--accent-solid);
  }
  .custom-select-options {
    display: none;
    position: absolute;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(0,0,0,0.20);
    overflow: hidden;
    z-index: 20;
  }
  .mobile-select.open .custom-select-options {
    display: block;
  }
  .custom-select-options div {
    padding: 12px;
    font-size: .95rem;
    border-bottom: 1px solid #eee;
  }
  .custom-select-options div:hover {
    background: #eaf2ff;
  }
}
