/* ===== GLOBAL RESET ===== */
* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* stops side scrolling */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*{
        box-sizing: border-box;
        margin: 0;
        padding: 0;
       }

       html, body {
        width: 100%;
        overflow-x: hidden;
       }

    
       
       :root {
            --primary: #1a3a5f;
            --accent: #e67e22;
            --light-bg: #f8f9fa;
            --border: #ced4da;
            --success: #27ae60;
            --warning: #fff3cd;
        }

        body {
            font-family: 'Segoe UI', Arial, sans-serif;
            background-color: #e9ecef;
            margin: 0;
            padding: 20px;
            line-height: 1.6;
        }

        .container {
            width: 100%;
            max-width: 1100pxpx ;
            margin: 0 auto;
            background: #fff;
            padding: 16px;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            box-sizing: border-box;
        }

        header {
            text-align: center;
            margin-bottom: 40px;
            border-bottom: 3px solid var(--primary);
            padding-bottom: 20px;
        }

        h1 { color: var(--primary); margin: 0; letter-spacing: 1px; }
        h2 { color: var(--accent); font-size: 1.1rem; margin-top: 5px; text-transform: uppercase; }

        fieldset {
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 30px;
            background: #fff;
        }

        legend {
            font-weight: 700;
            color: var(--primary);
            padding: 0 15px;
            font-size: 1.1rem;
            text-transform: uppercase;
        }

        .form-row {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 15px;
        }

        .form-group {
            flex: 1;
            min-width: 250px;
            display: flex;
            flex-direction: column;
        }

        label {
            font-weight: 600;
            margin-bottom: 8px;
            font-size: 0.9rem;
            color: #444;
        }

        input, select, textarea {
            padding: 12px;
            border: 1px solid var(--border);
            border-radius: 5px;
            font-size: 1rem;
            transition: border-color 0.3s;
        }

        input:focus, select:focus {
            border-color: var(--accent);
            outline: none;
        }

        .checkbox-group {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin: 15px 0;
            background: var(--light-bg);
            padding: 10px;
            border-radius: 5px;
        }

        .declaration-box {
            background: #fdfdfd;
            border: 1px solid #eee;
            padding: 20px;
            font-size: 0.9rem;
            color: #555;
            height: 150px;
            overflow-y: scroll;
            margin-bottom: 15px;
        }

        /* Payment Instruction Styling */
        .payment-notice {
            background-color: var(--warning);
            border-left: 5px solid #ffc107;
            padding: 20px;
            margin: 30px 0;
            border-radius: 4px;
        }

        .payment-notice h4 { margin: 0 0 10px 0; color: #856404; }
        .payment-notice p { margin: 0; font-weight: 500; color: #664d03; }

        .submit-btn {
            background-color: var(--primary);
            color: white;
            padding: 18px;
            border: none;
            border-radius: 6px;
            font-size: 1.2rem;
            font-weight: 700;
            width: 100%;
            cursor: pointer;
            transition: transform 0.2s, background 0.3s;
        }

        .submit-btn:hover { background-color: #0d233a; transform: translateY(-2px); }

        @media (max-width: 600px) {
            .container { padding: 20px; }
            .form-group { min-width: 100%; }
        }

.help-note {
  background-color: #f9f9f9;
  border-left: 4px solid #007bff;
  padding: 10px 15px;
  margin: 10px 20px;
  font-size: 14px;
  color: #333;
}

.help-note strong {
  color: #007bff;
}

/* ================= HEADER WITH LOGO ================= */

.site-header {
  padding: 20px 0px;
  border-bottom: 2px solid #eaeaea;
  background-color: #ffffff;

  display: flex;
  justify-content: center;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-logo {
  height: 150px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.brand-text h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  color: #222;
  letter-spacing: 0.5px;
}

.brand-text {text-align: center;
margin-left:45px;
}

.brand-text h2 {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  letter-spacing: 1px;
}

/* ================= HELP NOTE ================= */

.help-note {
  background-color: #f9f9f9;
  border-left: 4px solid #007bff;
  padding: 10px 15px;
  margin: 10px 20px;
  font-size: 14px;
  color: #333;
}

.help-note strong {
  color: #007bff;
}

/* ================= FINAL MOBILE RESPONSIVE ================= */
@media (max-width: 600px) {

  /* Global scale */
  html, body {
    width: 100%;
    overflow-x: hidden;
    font-size: 11px;
    line-height: 1.35;
  }

  /* Container & sections */
  .container,
  fieldset,
  .form-row,
  .form-group {
    max-width: 100%;
    box-sizing: border-box;
  }

  fieldset {
    padding: 10px;
  }

  .form-group {
    margin-bottom: 6px;
  }

  .form-row {
    gap: 6px;
  }

  /* Header (mobile only) */
  @media (max-width: 600px) {
  .site-header {
    padding: 14px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .header-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;

    transform: translateX(-8px);
  }

  .site-logo {
    height: 70px;
    width: auto;
    margin: 0 auto;
    display: block;
  }

  /* Institute name: small & single line */
  .brand-text h1 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
  }

  /* Tagline */
  .brand-text h2 {
    font-size: 11px;
    line-height: 1.3;
  }

  }

  /* Headings inside form */
  h1 { font-size: 16px; }
  h2 { font-size: 12px; }
  h3, h4, legend { font-size: 11px; }

  label {
    font-size: 11px;
  }

  /* Inputs */
  input,
  select,
  textarea {
    width: 100%;
    max-width: 100%;
    font-size: 11px;
    padding: 5px 7px;
    height: auto;
    box-sizing: border-box;
  }

  input[type="file"] {
    width: 100%;
  }

}
