* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set Poppins as global font, Industry for headings */
body, html {
    font-family: "Poppins", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: white;
    color: #000;
}

/* Industry font for headings and logo */
.heading,
.logo,
.footer-heading,
.footer-subheading,
.thank-you-heading,
.submit-button {
    font-family: "industry", sans-serif;
}

/* Added Industry font weight utility classes */
.industry-light        { font-weight: 300; }
.industry-light-italic { font-weight: 300; font-style: italic; }

.industry-regular        { font-weight: 400; }
.industry-regular-italic { font-weight: 400; font-style: italic; }

.industry-medium        { font-weight: 500; }
.industry-medium-italic { font-weight: 500; font-style: italic; }

.industry-semibold        { font-weight: 600; }
.industry-semibold-italic { font-weight: 600; font-style: italic; }

.industry-bold        { font-weight: 700; }
.industry-bold-italic { font-weight: 700; font-style: italic; }

.industry-extrabold        { font-weight: 800; }
.industry-extrabold-italic { font-weight: 800; font-style: italic; }

.industry-black        { font-weight: 900; }
.industry-black-italic { font-weight: 900; font-style: italic; }

/* Header */
.header {
    display: flex;
    justify-content: center;
    padding: 24px 16px 16px;
    background: white;
}

.logo {
    text-align: center;
    user-select: none;
}

/* Added styling for logo image to control its size */
.logo img {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.logo-main {
    color: #E63946;
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
}

.logo-sub {
    color: black;
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 0.3em;
    margin-top: 4px;
}

/* Hero Section */
.hero-section {
    width: 100%;
    min-height: 700px;
    /* Removed background image for mobile, will show black background */
    background: #000;
    /* Added display flex to enable full height stretching */
    display: flex;
    flex-direction: column;
}

/* Added mobile hero image that shows above content */
.mobile-hero-image {
    width: 100%;
    height: 200px;
    background-image: url('https://47115785.fs1.hubspotusercontent-na1.net/hubfs/47115785/SI%20Nashville_Exterior%20Rendering%201.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    width: 100%;
    /* Changed height to flex: 1 to fill available space */
    flex: 1;
    /* Added gradient overlay for steps 1 and 2 - darker at top, lighter at bottom */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.65) 50%, rgba(0, 0, 0, 0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 48px 20px; */
}

/* Create gradient wrapper that's wider than form content */
.container {
    width: 100%;
    max-width: 1024px;
    /* Add background gradient to container itself so it extends wider */
    background: rgba(0, 0, 0, 0.7);
    padding: 35px 24px;
    border-radius: 24px;
}

/* Inner wrapper to constrain form inputs to narrower width */
.form-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Added special container styling for step 3 (thank you) */
.container.container-step-3 {
    width: 100%;
    max-width: 1440px;
    background: rgba(0, 0, 0, 0.7);
    padding: 29px;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    gap: 0;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: #E63946;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 28px;
    z-index: 10;
}

.progress-step.active {
    background: #E63946;
    color: white;
}

.progress-line {
    width: 64px;
    height: 8px;
    background: #E63946;
}

/* Form */
.heading {
    color: white;
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    user-select: none;
    line-height: 1;
}

.description {
    color: white;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    user-select: none;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form-row-3 {
    grid-template-columns: 1fr;
}

.form-input {
    height: 56px;
    border-radius: 9999px;
    border: 3px solid #8B0000;
    background: white;
    color: black;
    padding: 0 24px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: #E63946;
}

.form-input::placeholder {
    color: #6b7280;
}

/* Custom Select */
.custom-select {
    position: relative;
}

.select-button {
    width: 100%;
    height: 56px;
    border-radius: 9999px;
    border: 3px solid #8B0000;
    background: white;
    color: black;
    padding: 0 24px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.select-button:hover {
    border-color: #E63946;
}

.select-button:active {
    transform: scale(0.98);
}

.select-value {
    color: #6b7280;
    font-family: "Poppins", sans-serif; /* Explicitly set to Poppins */
}

.select-value.selected {
    color: black;
    font-weight: 500;
    font-family: "Poppins", sans-serif; /* Explicitly set to Poppins */
}

.select-arrow {
    color: #8B0000;
    transition: transform 0.2s;
}

.select-arrow.open {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    z-index: 50;
    width: 100%;
    margin-top: 8px;
    background: white;
    border: 3px solid #8B0000;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-height: 256px;
    overflow-y: auto;
    display: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.select-dropdown::-webkit-scrollbar {
    display: none;
}

.select-dropdown.open {
    display: block;
}

.select-option {
    width: 100%;
    padding: 14px 24px;
    text-align: left;
    color: black;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.15s;
    font-family: "Poppins", sans-serif; /* Explicitly set to Poppins */
}

.select-option:hover {
    background: #E63946;
    color: white;
}

.select-option.selected {
    background: #f3f4f6;
}

/* Legal Text */
.legal-text {
    color: white;
    font-size: 10px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 768px;
    margin: 16px auto 0;
}

.legal-small {
    font-size: 9px;
}

/* Hide step 2 legal text on desktop, show on mobile */
.legal-text-step2 {
    display: flex;
}

@media (min-width: 768px) {
    .legal-text-step2 {
        display: none;
    }

    /* On desktop, hide mobile hero image and use background image with overlay */
    .mobile-hero-image {
        display: none;
    }

    .hero-section {
        min-height: 850px;
        background-image: url('https://47115785.fs1.hubspotusercontent-na1.net/hubfs/47115785/SI%20Nashville_Exterior%20Rendering%201.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .hero-overlay {
        padding: 64px 32px;
        /* Desktop gradient overlay for better visual hierarchy */
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.15) 100%, rgba(0, 0, 0, 0.65) 17%);
    }

    .header {
        padding: 32px 32px 24px;
    }

    /* Added larger logo size for desktop */
    .logo img {
        width: 170px;
    }

    .logo-main {
        font-size: 32px;
    }

    .logo-sub {
        font-size: 20px;
    }

    .hero-section {
        min-height: 850px;
    }

    .hero-overlay {
        padding: 64px 32px;
    }

    .progress-step {
        width: 64px;
        height: 64px;
        font-size: 32px;
    }

    .progress-line {
        width: 112px;
        height: 6px;
    }

    .heading {
        font-size: 56px;
    }

    .description {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .form-row-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .legal-text {
        font-size: 12px;
    }

    .legal-small {
        font-size: 11px;
    }

    .submit-button {
        font-size: 20px;
        padding: 28px 80px;
    }

    .thank-you-heading {
        font-size: 72px;
    }

    .thank-you-text {
        font-size: 40px;
    }

    .footer {
        padding: 48px 24px;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    .footer-heading {
        font-size: 36px;
    }

    .footer-subheading {
        font-size: 18px;
    }

    .footer-right {
        font-size: 14px;
        text-align: right;
    }

    .footer-links {
        justify-content: flex-end;
    }

    .scroll-to-top button svg {
        width: 40px;
        height: 40px;
    }

    /* Desktop - wider gradient container */
    .container {
        max-width: 1440px;
        padding: 64px 80px;
    }

    /* Keep form content narrower on desktop */
    .form-content-wrapper {
        max-width: 900px;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        min-height: 900px;
    }

    .heading {
        font-size: 64px;
    }

    .thank-you-heading {
        font-size: 96px;
    }

    .footer-heading {
        font-size: 40px;
    }
}


/* Button */
.button-container {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 16px;
}

.submit-button {
    background: #E63946;
    color: white;
    font-weight: 700;
    font-size: 18px;
    padding: 24px 64px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-button:hover {
    background: #C42F3B;
}

.submit-button:active {
    transform: scale(0.95);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Thank You */
.thank-you {
    text-align: center;
    /* Removed fixed padding to allow flexbox centering */
    user-select: none;
}
@media (min-width:500px){
.thank-you-heading {
    color: white;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-align: center;
    user-select: none;
}}
.thank-you-heading {
    color: white;
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-align: center;
    user-select: none;
}
@media (min-width:500px){
.thank-you-text {
    color: white;
    font-size: 32px;
    text-align: center;
    font-weight: 400;
}}
.thank-you-text {
    color: white;
    font-size: 22px;
    text-align: center;
    font-weight: 400;
}

/* Footer */
.footer {
    background: white;
    padding: 24px 16px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-heading {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: black;
    line-height: 1.2;
}

.footer-subheading {
    font-size: 16px;
    color: #374151;
}

.footer-right {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-text {
    line-height: 1.6;
    max-width: 672px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.footer-links a {
    color: #6b7280;
    text-decoration: underline;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: black;
}

.scroll-to-top {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.scroll-to-top button {
    background: none;
    border: none;
    cursor: pointer;
    color: black;
    transition: color 0.2s;
    padding: 0;
}

.scroll-to-top button:hover {
    color: #E63946;
}

/* Responsive */
@media (min-width: 768px) {
    .header {
        padding: 32px 32px 24px;
    }

    .logo-main {
        font-size: 32px;
    }

    .logo-sub {
        font-size: 20px;
    }

    .hero-section {
        min-height: 850px;
    }

    .hero-overlay {
        padding: 64px 32px;
    }

    .progress-step {
        width: 64px;
        height: 64px;
        font-size: 32px;
    }

    .progress-line {
        width: 112px;
        height: 6px;
    }

    .heading {
        font-size: 56px;
    }

    .description {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .form-row-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .legal-text {
        font-size: 12px;
    }

    .legal-small {
        font-size: 11px;
    }

    .submit-button {
        font-size: 20px;
        padding: 28px 80px;
    }

    .thank-you-heading {
        font-size: 72px;
    }

    .thank-you-text {
        font-size: 40px;
    }

    .footer {
        padding: 48px 24px;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    .footer-heading {
        font-size: 42px;
    }

    .footer-subheading {
        font-size: 18px;
    }

    .footer-right {
        font-size: 14px;
        text-align: right;
    }

    .footer-links {
        justify-content: flex-end;
    }

    .scroll-to-top button svg {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        min-height: 900px;
    }

    .heading {
        font-size: 64px;
    }

    .thank-you-heading {
        font-size: 96px;
    }

    .footer-heading {
        font-size: 36px;
    }
}

/* Mobile styles for step 3 to reduce negative space */
@media (max-width: 767px) {
    /* Reduce hero section height on step 3 to 500px */
    .hero-section.step-3-active {
        min-height: 500px;
    }
    
    /* Moderate padding reduction for step 3 container - balances space reduction with overall layout */
    .container-step-3 {
        padding: 12px 20px;
    }

    /* Reduced heading margin for tighter spacing */
    #step3 h1 {
        margin-bottom: 12px;
    }

    /* Slightly smaller text on mobile */
    #step3 .thank-you-text {
        font-size: 26px;
        line-height: 1.3;
    }

    /* Tighter progress indicator spacing */
    #step3 .progress-indicator {
        margin-bottom: 20px;
    }
}
