/* CSS Variables */
:root {
    --primary-blue: #0066cc;
    --primary-green: #00704a;
    --light-blue: #e6f2ff;
    --secure-green: #ccffcc;
    --border-color: #ccc;
    --text-color: #333;
    --white: #ffffff;
    --background-gray: #f8f8f8;
    --border-radius: 5px;
}

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-gray);
    color: var(--text-color);
}

/* Header Styles */
header {
    background-color: var(--primary-green);
    color: white;
    padding: 1.2em 1em;
    text-align: center;
}

/* Heading Styles */
h1 {
    margin: 0;
    font-size: 2.0em;
}

h2 {
    font-weight: normal;
    font-style: italic;
    margin: 0.3em 0 0;
    font-size: 1.1em;
}

h3 {
    font-weight: bold;
    font-size: 1.3em;
    color: blue;
}

/* Container Styles - Main content container */
.container {
    max-width: 1076px;
    margin: auto;
    padding: 2em 1em;
    background-color: white;
}

/* Form Container - Centered within the main container */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Image Layout */
.image-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1em;
    margin-bottom: 2em;
}

.image-box {
    flex: 1 1 48%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-box img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

/* Section Styles */
section {
    margin-bottom: 2em;
}

/* List Styles */
ul {
    padding-left: 1.2em;
}

/* Link Styles */
a {
    color: var(--primary-green);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Form Styles */
.form-title {
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    background-color: var(--light-blue);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: var(--secure-green);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.address-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.address-row .city {
    flex: 2;
    min-width: 150px;
}

.address-row .state {
    flex: 1;
    min-width: 80px;
}

.address-row .zip {
    flex: 1;
    min-width: 100px;
}

.submit-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0052a3;
}

.submit-btn:active {
    background-color: #003d7a;
}

.required {
    color: #d32f2f;
}

.error-message {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.gallery img,
.video-thumb {
  width: 150px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.video-thumb .play-button {
  position: absolute;
  font-size: 30px;
  color: white;
  top: 35%;
  left: 42%;
  pointer-events: none;
}

#lightbox,
#video-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox img,
#video-popup video {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}
figure {
  margin: 0;
  text-align: center;
}

figcaption {
  font-size: 0.85em;
  margin-top: 5px;
  color: #444;
}

.lightbox-content
{
  text-align: center;
  color: white;
}

#lightbox-caption,
{
  margin-top: 10px;
  font-size: 0.9em;
  opacity: 0.8;
}
.video-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90%;
}

#popup-video {
  width: 100%;
  height: auto;
  max-height: 80vh; /* ensures caption fits below */
  border-radius: 10px;
}

#video-caption {
  margin-top: 10px;
  color: white;
  font-size: 0.9em;
  text-align: center;
  opacity: 0.8;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  z-index: 1001;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 4px 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.close-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}


/* Mobile Responsive Styles */
@media (max-width: 600px) {
    .image-box {
        flex: 1 1 100%;
    }
    
    .form-container {
        padding: 20px;
        margin: 10px;
    }

    .form-title {
        font-size: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        min-width: auto;
    }

    .address-row {
        flex-direction: column;
        gap: 0;
    }

    .address-row .form-group {
        min-width: auto;
    }
}

/* Tablet Responsive Styles */
@media (min-width: 768px) and (max-width: 1023px) {
    .form-container {
        padding: 35px;
    }
}

/* Desktop Responsive Styles */
@media (min-width: 1024px) {
    .form-container {
        padding: 40px;
    }

    .form-title {
        font-size: 32px;
    }
}

