:root {
    --bg-color: #65B1A4;
    --text-color: #ffffff;
    --button-bg: #ffffff;
    --button-text: #65B1A4;
}

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

body {
    font-family: 'new-hero', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.header-content {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.bayskate-logo {
    width: 450px;
    max-width: 90vw;
}

.headline {
    font-size: 1.4rem;
    font-weight: 300;
    /* Aligns at 30% of logo height (Aspect Ratio 1:0.2646) */
    margin-bottom: calc(min(375px, 90vw) * 0.08);
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.button-group {
    display: flex;
    gap: 25px;
}

.btn {
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 12px 20px;
    width: 250px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: transform 0.2s, background-color 0.2s;
}

.btn:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
}

footer {
    position: relative;
    padding-bottom: 5px;
    bottom: 40px;
    width: calc(100% - 80px);
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.6rem;
    text-transform: uppercase;
}

.powered-by img {
    height: 20px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.6rem;
    text-transform: uppercase;
}

.social-links i,
.social-svg {
    font-size: 1.2rem;
    height: 1.2rem;
    width: auto;
    filter: brightness(0) invert(1);
    vertical-align: middle;
}

.fab,
.social-svg {
    position: relative;
    bottom: 4px;
    color: white;
}

.fab:hover {
    transform: scale(1.1);
    color: white;
}

.fab:link {
    color: white;
}

/* Utility Classes */
.only-mobile {
    display: none !important;
}

.not-mobile {
    display: block !important;
}

@media (max-width: 600px) {
    .only-mobile {
        display: block !important;
    }

    .not-mobile {
        display: none !important;
    }

    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .main-content {
        justify-content: center;
        padding-top: 60px;
        padding-bottom: 100px;
    }

    .bayskate-logo {
        width: 80%;
        margin-bottom: 20px;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
    }

    .headline {
        flex-direction: column;
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .social-text {
        display: none !important;
    }

    footer {
        position: relative;
        bottom: 20px;
        flex-direction: row;
        gap: 15px;
        justify-content: space-between;
        width: calc(100% - 40px);
        margin: 0 auto;
    }

    .form-title {
        font-size: 2.5rem;
    }

    .form-subtitle {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .partner-form {
        gap: 1.5rem;
    }
}

/* Landscape / Small Height Adjustments */
@media (max-height: 500px) {
    .modal-content {
        padding: 20px;
    }

    .form-title {
        font-size: 2rem;
        margin-bottom: 5px;
    }

    .form-subtitle {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .partner-form {
        gap: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 12px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.5s ease-out, opacity 0.3s, visibility 0.5s;
    overflow-y: auto;
}

.modal-content.subscribe-content {
    max-width: 565px;
}

.modal-overlay.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 685px;
    padding: 40px 20px;
    text-align: center;
    margin: auto;
    /* Center in scrollable overlay */
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: scale(1.1);
}

.close-btn img {
    width: 25px;
    height: 25px;
}

.form-title {
    font-size: 3.46rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.form-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0.9;
}

.partner-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    font-family: 'Comfortaa', sans-serif;
    font-size: 0.9rem;
    color: var(--bg-color);
    background-color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #65B1A4;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234db3a2' d='M1 4l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.submit-btn {
    align-self: flex-start;
    background-color: #444;
    /* Dark gray for contrast */
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-family: 'Comfortaa', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

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