/* --------------------------------------------------- */
/* 1. Basic Reset & Global Styles                      */
/* --------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #111111;
    background-image: url('background.gif'); 
    background-repeat: repeat; 
    background-attachment: scroll; 
}

/* --------------------------------------------------- */
/* 2. Header and Navigation                            */
/* --------------------------------------------------- */
.main-header {
    background-color: #C0C0C0; 
    color: black;
    padding: 10px 25px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    /* 3D OUTSET Effect for Header */
    border-top: 2px solid #FFFFFF; 
    border-left: 2px solid #FFFFFF; 
    border-right: 2px solid #666666; 
    border-bottom: 2px solid #666666; 
}

.logo a {
    color: #0000AA; 
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none; 
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.main-nav a {
    color: #0000AA; 
    text-decoration: none;
    font-size: 1em;
    padding: 5px 0;
}

/* Navigation Hover Effect */
.main-nav a:hover {
    color: #FF0000; 
    transform: translateY(1px);
    text-shadow: 1px 1px black; 
}

/* Active Navigation Link Style (Sunken Tab Effect) */
.main-nav a.active {
    color: black; 
    background-color: #EFEFEF; 
    font-weight: bold;
    border-top: 1px solid #666666;
    border-left: 1px solid #666666;
    border-right: 1px solid #FFFFFF;
    padding: 5px 10px; 
}

/* --------------------------------------------------- */
/* 3. Container and Typography                         */
/* --------------------------------------------------- */
.container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background-color: #ffffff;
    border: 2px solid black;
    box-shadow: 4px 4px 0 0 #333; 
}

h1, h2 {
    color: #0000AA; 
    border-bottom: 3px dashed #FF0000; 
    padding-bottom: 5px;
    text-align: center;
    margin-bottom: 15px; 
}

p {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.95em;
    padding-left: 10px;
    padding-right: 10px;
}

/* --------------------------------------------------- */
/* 4. Form Structure and Inputs                        */
/* --------------------------------------------------- */
fieldset {
    border: 3px solid #808080; 
    padding: 20px;
    margin-bottom: 25px;
}

legend {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    padding: 0 10px;
    background-color: #C0C0C0;
    border: 1px solid black;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Input Recess Effect */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea,
input[type="file"] { 
    width: 100%;
    padding: 10px;
    border: 1px solid black;
    font-size: 1em;
    background-color: #EFEFEF;
    box-shadow: 
        inset 1px 1px 0 0 #808080, 
        inset -1px -1px 0 0 #FFFFFF;
    resize: vertical; 
}

/* Validation Styling */
input:invalid:focus, 
textarea:invalid:focus, 
select:invalid:focus {
    border-color: #dc3545; 
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* --------------------------------------------------- */
/* 5. Buttons and Messaging                            */
/* --------------------------------------------------- */

/* Button Outset Effect */
#submit-btn, .cta-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #C0C0C0; 
    color: black;
    border: none;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    
    /* 3D OUTSET Effect */
    box-shadow: 
        2px 2px 0 0 black,     
        -2px -2px 0 0 #F0F0F0; 
    cursor: pointer;
}

/* Button Click State (Sunken effect) */
#submit-btn:active, .cta-button:active {
    background-color: #A0A0A0; 
    box-shadow: 
        inset 1px 1px 0 0 black,
        inset -1px -1px 0 0 #F0F0F0; 
    transform: translate(1px, 1px);
}

/* Form Message Box Styling */
#form-message {
    padding: 15px;
    margin-top: 20px;
    border: 1px solid black;
    text-align: center;
    color: white;
    font-weight: bold;
}
.hidden {
    display: none;
}
.success {
    background-color: #28a745;
}
.error {
    background-color: #dc3545;
}

/* --------------------------------------------------- */
/* 6. Custom/Nested Form Elements & Flexbox Layouts    */
/* --------------------------------------------------- */

/* Flexbox for Scheduling Fields (Horizontal Alignment) */
.two-column-row {
    display: flex;
    gap: 15px; 
    margin-bottom: 10px;
}
.two-column-row .form-group {
    flex-basis: 50%; 
    margin-bottom: 0; 
}

/* Styling for the Video Platform Sub-Options Group */
.sub-options-group {
    border: 1px solid #808080; 
    padding-left: 15px;
    margin: 10px 0 15px 20px;
    background-color: #EFEFEF; 
    padding-top: 5px;
    padding-bottom: 5px;
}

.sub-label {
    display: block;
    font-weight: bold; 
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #333; 
}

/* Flexbox for Video Platform Horizontal Alignment */
.sub-radios {
    display: flex; 
    gap: 25px; 
    align-items: center; 
    padding: 0; 
    margin: 0;
}

.clean-list {
    list-style-type: none; 
    margin: 0; 
    padding: 5px 10px;
}

/* CTA Section Wrapper */
.cta-section {
    padding-top: 10px;
}

/* --------------------------------------------------- */
/* 7. Helper and Confirmation Text Styles              */
/* --------------------------------------------------- */

/* Universal Style for Minor Helper Text (e.g., file limits, ASAP context) */
.form-help {
    display: block;
    font-size: 0.8em;
    color: #666; 
    margin-top: 5px;
    text-align: left; 
    padding-left: 0;
    text-align: center;
}

/* Style for the Scheduling Guidance (Provides user direction below two-column fields) */
.scheduling-guidance {
    display: block; 
    font-size: 0.85em; 
    color: #000080; 
    text-align: center; 
    margin-top: 15px;
    margin-bottom: 0px;
    font-style: italic;
}

/* Style for the Final Confirmation Message (Most important instruction before submit) */
.confirmation-message {
    font-weight: bold;
    color: #333; 
    background-color: #F0F0F0; 
    padding: 10px;
    border: 1px solid #CCC;
    text-align: center; 
    margin-top: 20px;
    margin-bottom: 20px;
}

/* --------------------------------------------------- */
/* 8. Responsiveness                                   */
/* --------------------------------------------------- */
@media (max-width: 600px) {
    .main-header {
        flex-direction: column; 
        padding: 15px 10px;
    }
    
    .main-nav {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
    
    .main-nav ul {
        justify-content: space-around; 
        gap: 0;
        padding: 0;
    }

    .container {
        margin: 10px;
        padding: 15px;
    }

    /* Stack two-column fields vertically on small screens */
    .two-column-row {
        flex-direction: column;
    }

    .two-column-row .form-group {
        flex-basis: 100%;
    }
}