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

body {
    background-color: #ffD400; /* Fixed brand yellow */
    font-family: 'Afacad Flux', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #000000;
    margin: 0;
    padding: 20px;
    letter-spacing: -0.03em;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center; /* Centers layout block perfectly */
}

/* --- Layout Container --- */
.page-wrapper {
    width: 100%;
    max-width: 960px; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px; 
    min-height: 85vh; 
    position: relative;
}

header {
    width: 100%;
}

/* --- Branding Elements --- */
.brand-logo {
    width: 100%;
    max-width: 160px;
    height: auto;
}

/* --- Main Content Group --- */
.main-content-group {
    display: flex;
    flex-direction: column;
    gap: 56px; 
    width: 100%;
    flex: 1; 
}

/* --- Typography --- */
.hero-text {
    font-size: 1.5rem; 
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 24px; 
}

.hero-text strong {
    font-weight: 700;
}

.hero-text em {
    font-style: italic;
}

.sub-text {
    font-size: 1.5rem; 
    line-height: 1.5;
    font-weight: 400;
}

/* --- Form Layout Container --- */
.signup-section {
    width: 100%;
}

.form-title {
    font-size: 1.5rem; 
    font-weight: 400;
    margin-bottom: 24px;
}

/* --- Multi-Input Form Row Layout (Desktop) --- */
.taste-list-form {
    display: flex;
    align-items: center;
    justify-content: center; 
    width: 100%;
    max-width: 440px; 
    margin: 0 auto; 
    padding-bottom: 4px;
    gap: 14px; 
}

/* Shared Base Input Properties */
.taste-list-form input {
    background: transparent;
    border: none;
    border-bottom: 2px solid #000000; 
    outline: none;
    font-family: inherit;
    font-size: 1.5rem; 
    color: #000000;
    padding: 4px 0;
}

/* Proportional layout distributions on Desktop */
.taste-list-form input[type="email"] {
    flex: 1.8; 
}

.taste-list-form input[type="text"] {
    flex: 1; 
}

.taste-list-form input::placeholder {
    color: rgba(0, 0, 0, 0.7);
}

/* Submit Button Positioning */
.submit-button {
    background: none;
    border: none;
    cursor: pointer;
    padding-left: 2px; 
    margin-left: -2px; 
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.submit-button:hover {
    transform: scale(1.15);
}

.submit-button img {
    height: 31px; 
    width: auto;
}

/* --- Custom Red Underline Helper --- */
.underline-red {
    border-bottom: 2px solid #CF1010; 
    padding-bottom: 1px; 
}

/* --- Discreet Instagram Container & Link --- */
.instagram-container {
    margin-top: 32px; 
    width: 100%;
}

.instagram-link {
    display: inline-flex;
    align-items: center; 
    justify-content: center;
    color: #000000; 
    font-size: 1.5rem; 
    text-decoration: none; 
    font-weight: 400;
    transition: transform 0.2s ease;
}

.instagram-fish-icon {
    height: 31px; 
    width: auto;
    display: inline-block;
    vertical-align: middle; 
    border: none; 
    margin-left: 4px; 
}

.instagram-link:hover {
    transform: scale(1.05);
}

/* --- Premium Discreet Footer Section --- */
footer {
    width: 100%;
    margin-top: 64px; 
    padding: 20px 0 10px 0;
}

.footer-text {
    font-size: 1rem; 
    color: rgba(0, 0, 0, 0.5); 
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* --- Responsive Layout for Mobile Phones --- */
@media (max-width: 480px) {
    .page-wrapper {
        gap: 40px;
        max-width: 100%; 
    }
    .main-content-group {
        gap: 40px;
    }
    .brand-logo {
        max-width: 140px;
    }
    
    /* Forces horizontal alignment to stay locked side-by-side on mobile screens */
    .taste-list-form {
        display: flex;
        flex-direction: row; 
        align-items: center;
        justify-content: center;
        gap: 10px; /* Snug spacing to maximize width efficiency */
        width: 100%;
        max-width: 320px; /* Restricts the row so it stays beautifully contained on tiny mobile viewports */
        margin: 0 auto;
        padding: 0 4px;
    }

    /* Scales down typography size exclusively on mobile so text strings fit cleanly */
    .taste-list-form input {
        font-size: 1.15rem; 
    }

    /* Gives email the major share of the mobile viewport row */
    .taste-list-form input[type="email"] {
        flex: 2.2; 
        min-width: 0; /* Prevents text overflow blowouts */
    }

    /* Keeps the zip field short since it only needs 5 numeric slots */
    .taste-list-form input[type="text"] {
        flex: 1; 
        min-width: 0;
    }
    
    .submit-button {
        padding-left: 2px;
        margin-left: -2px;
        width: auto;
    }
    
    .hero-text, .sub-text, .form-title, .instagram-link {
        font-size: 1.25rem;
    }
    .submit-button img, .instagram-fish-icon {
        height: 24px; /* Proportional scaling to match the text size reduction */
    }
    .footer-text {
        font-size: 0.85rem; 
    }
}