/* Color Variables */
:root {
    --inop-blue: #004aad;
    --inop-green: #28a745;
    --white: #ffffff;
    --soft-gray: #f1f3f4;
}

/* Sparkling Animated Background */
body {
    margin: 0;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(-45deg, #004aad, #28a745, #ffffff, #e8f5e9);
    background-size: 400% 400%;
    animation: sparkleAnimation 12s ease infinite;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

@keyframes sparkleAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Main Form Container */
.form-container {
    background: var(--white);
    width: 100%;
    max-width: 750px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    max-height: 92vh;
    overflow-y: auto; /* Google Forms Scrollbar */
    position: relative;
    border-top: 12px solid var(--inop-blue);
}

/* Google Forms Style Scrollbar */
.form-container::-webkit-scrollbar {
    width: 10px;
}
.form-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.form-container::-webkit-scrollbar-thumb {
    background: var(--inop-blue);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

/* Header Image - Centers any image size */
.header-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eee;
    overflow: hidden;
    border-bottom: 5px solid var(--inop-green);
}

.header-image {
    width: 100%;
    min-height: 162px;
    background: url('imgaeheader.jpeg') center center no-repeat;
    background-size: cover;
}

.form-content {
    padding: 30px 40px;       
}

h1 { color: var(--inop-blue); text-align: center; margin-bottom: 5px; }
.subtitle { color: var(--inop-green); text-align: center; font-weight: bold; margin-bottom: 30px; }

/* Section Styling */
section {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #dadce0;
    border-radius: 8px;
}

.section-header {
    background: var(--inop-blue);
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Fields & Labels */
.input-group { margin-bottom: 18px; }
label { display: block; margin-bottom: 8px; font-weight: 600; color: #3c4043; }

input[type="text"], input[type="number"], input[type="email"], input[type="date"], select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}

input:focus, select:focus {
    border-color: var(--inop-green);
    outline: none;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.2);
}

.info-text { font-size: 0.85rem; color: var(--inop-blue); font-weight: bold; margin-bottom: 10px; }

/* Submit Button */
button {
    background: var(--inop-green);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 8px;
    width: 100%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

button:hover { background: var(--inop-blue); }
button:disabled { background: #999; cursor: not-allowed; }

/* Mobile-friendly modal */
#successModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  background: #fff;
  width: 90%;
  max-width: 420px;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.modal-box h2 {
  color: #1b7f3c;
  margin-bottom: 10px;
}

.modal-box p {
  font-size: 15px;
  line-height: 1.6;
}

.modal-box button {
  margin-top: 15px;
  padding: 12px 20px;
  background: #1b7f3c;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  width: 100%;
}

/* Loading button */
button:disabled {
  opacity: 0.7;
}
