/**
 * Texas Elevator Association - Root Stylesheet
 * Main styles for public website
 */

/* Base Styles */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('../images/background-full.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    position: relative;
}

/* Loader Styles */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.75s ease;
}

#progress-bar-container {
    width: 80%;
    max-width: 400px;
    height: 30px;
    border: 2px solid #2c3e50;
    border-radius: 5px;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    width: 0;
    background: repeating-linear-gradient(
        45deg,
        #c0392b,
        #c0392b 15px,
        #ffffff 15px,
        #ffffff 30px,
        #34568B 30px,
        #34568B 45px
    );
    transition: width 0.2s ease-out;
}

#loader-percentage {
    margin-top: 1rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #2c3e50;
}

/* Container */
.container {
    max-width: 800px;
    width: 90%;
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
}

/* Logo and Images */
.logo {
    max-width: 220px;
    margin-bottom: 2rem;
}

.title-image {
    max-width: 700px;
    width: 100%;
    margin-bottom: 3rem;
}

/* Content */
.content-paragraph {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 3rem auto;
}

.call-to-action {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* Board Members */
.board-members {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem 1rem;
    max-width: 750px;
    margin: 0 auto 4rem;
    text-align: center;
}

.member {
    padding: 1rem;
}

.member.placeholder {
    visibility: hidden;
}

.member-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #c0392b;
    margin: 0;
    text-transform: uppercase;
}

.member-title, .member-company {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 700;
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* Form Section */
.form-section {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid #cccccc;
}

.join-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.7);
    color: #2c3e50;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.checkbox-group input {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    font-size: 1rem;
    font-weight: 700;
}

.submit-btn {
    grid-column: 1 / -1;
    background-color: #c0392b;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

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

/* Thank You Message */
.thank-you-container {
    background-color: rgba(212, 237, 218, 0.95);
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 2rem 3rem;
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
}

.thank-you-container h2 {
    font-family: 'Oswald', sans-serif;
    color: #155724;
    font-size: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.thank-you-container p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #155724;
}

.thank-you-container .checkmark-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.submit-another-btn {
    display: inline-block;
    margin-top: 2rem;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-another-btn:hover {
    background-color: #218838;
}

/* Error Message */
.error-message {
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem auto;
    font-weight: bold;
    text-align: center;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
    margin-top: 6rem;
    padding: 2rem 0;
    position: relative;
}

.footer-left, .footer-right {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    line-height: 1.4;
    font-size: 1.2rem;
}

.footer-left p, .footer-right p {
    margin: 0;
}

.footer-left a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    word-break: break-all;
    font-weight: 700;
}

.footer-right {
    text-align: right;
}

.footer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
    z-index: -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 1rem;
        margin: 2rem auto;
    }
    .call-to-action {
        font-size: 1.2rem;
    }
    .board-members, .join-form {
        grid-template-columns: 1fr 1fr;
    }
    .footer {
        margin-top: 4rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    .footer-right {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .join-form, .board-members {
        grid-template-columns: 1fr;
    }
    .member.placeholder {
        display: none;
    }
}

