/* --- General Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    width: 100%;
    height: 100vh;
    position: relative;
    overflow-x: hidden; /* Prevents horizontal scrollbar */
}

/* --- Logo and Landing Page Layout --- */
.logoJPLindex {
    width: min(300px, 80%);
    height: auto;
    margin-bottom: 20px;
}

.landing-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    padding: 20px;
}

.text-box {
    text-align: center;
    color: white;
    font-family: Arial, sans-serif;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    position: relative;
    z-index: 1; /* Ensures text is above background */
}

/* --- Typography --- */
.text-box h1 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.text-box h2 {
    font-size: clamp(1.2rem, 4vw, 2rem);
    margin-bottom: 15px;
}

.text-box h3 {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 20px;
}

/* --- Background Image Slider --- */
.background-images-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Sits behind everything */
    background: linear-gradient(to bottom, #30367A, #71AB41, #518D41, #315628, #BFDFF8);
    overflow: hidden;
    pointer-events: none; /* Allows clicks to go through to elements behind it */
}

.background-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.background-images.visible {
    opacity: 1;
}

/* --- Social Media Icons --- */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    z-index: 10;
}

.social-icon {
    margin: 0;
    transition: transform 0.3s ease;
}

.social-icon-img {
    width: clamp(30px, 5vw, 40px);
    height: clamp(30px, 5vw, 40px);
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* --- Contact Form --- */
.contact-form {
    background: rgba(255,255,255,0.95);
    padding: 24px 18px;
    border-radius: 10px;
    max-width: 600px;
    margin: 40px auto 0 auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1.1rem;
    resize: none;
}

.contact-form textarea {
    min-height: 90px;
    max-height: 200px;
}

.contact-form select {
    background-color: white;
    cursor: pointer;
    width: 100%;
}

.contact-form select:focus {
    outline: none;
    border-color: #008c3a;
}

.contact-form button {
    background: #008c3a;
    color: #fff;
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: #006b2a;
}

/* --- Custom File Input --- */
.file-input-container {
    position: relative;
    width: 100%;
}

.file-input {
    position: absolute;
    left: -9999px; /* Hide the actual input */
    opacity: 0;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    border-color: #008c3a;
    background-color: #f8f8f8;
}

.file-icon {
    font-size: 1.2rem;
}

.file-text {
    font-size: 1.1rem;
    color: #666;
}

.file-input:focus + .file-label {
    border-color: #008c3a;
    outline: none;
}

/* --- Media Queries (Responsive Design) --- */
@media (max-width: 480px) {
    .landing-page, .text-box {
        padding: 10px;
    }
    .social-icons {
        gap: 15px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .landing-page { padding: 15px; }
    .text-box { padding: 20px; }
}

@media (orientation: landscape) and (max-height: 500px) {
    .landing-page { padding: 10px; }
    .text-box { padding: 10px; }
    .logoJPLindex { width: 150px; margin-bottom: 10px; }
    .social-icons { margin-top: 10px; }
}