.hero {
    position: relative;
    min-height: 819px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-inverse-surface);
    overflow: hidden;
    padding: 120px 0 60px 0; /* Add padding to prevent content from touching edges */
}

.hero__slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.hero__slide--active {
    opacity: 1;
    visibility: visible;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: transform 10s linear; /* Slight ken-burns effect */
}

.hero__slide--active img {
    transform: scale(1.05);
}

/* Slider Controls */
.hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: none; /* hidden on very small mobile, visible on tablet+ */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 768px) {
    .hero__nav {
        display: flex;
    }
}

.hero__nav:hover {
    background: var(--color-primary-container);
    border-color: var(--color-primary-container);
}

.hero__nav--prev {
    left: 24px;
}

.hero__nav--next {
    right: 24px;
}

.hero__dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.hero__dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero__dot--active {
    background: var(--color-primary-container);
    transform: scale(1.2);
}

.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

@media (min-width: 1024px) {
    .hero__content {
        display: grid;
        grid-template-columns: 1fr 450px;
        gap: 40px;
        align-items: center;
        text-align: left;
        max-width: 1250px;
        padding-left: 80px; /* Space for prev arrow */
        padding-right: 80px; /* Space for next arrow */
    }
}

/* Form resets inside hero */
.hero__form-col {
    margin-top: 40px;
    text-align: left; /* Keep form contents left-aligned */
}

@media (min-width: 1024px) {
    .hero__form-col {
        margin-top: 0;
    }
}

.hero__form-col .section {
    padding: 0;
    background: transparent;
}

.hero__form-col .container {
    padding: 0;
    width: 100%;
    max-width: none;
}

.hero__form-col .form-card {
    padding: 32px;
}

/* Compact the form slightly to fit better in the hero */
.hero__form-col .custom-form {
    gap: 16px;
}

.hero__form-col .custom-form__row {
    gap: 16px;
}

.hero__form-col .custom-form__label {
    margin-bottom: 4px;
}

.hero__title {
    font-family: var(--font-family-headline);
    font-size: var(--font-size-display-lg-mobile);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: var(--letter-spacing-display-lg-mobile);
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

@media (min-width: 768px) {
    .hero__title {
        font-size: var(--font-size-display-lg);
        letter-spacing: var(--letter-spacing-display-lg);
    }
}

.hero__title-highlight {
    color: #a7f3d0; /* Mint green */
}

.hero__desc {
    font-size: var(--font-size-body-lg);
    color: #ffffff;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

@media (min-width: 1024px) {
    .hero__desc {
        margin-left: 0;
    }
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero__actions {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero__actions {
        justify-content: flex-start;
    }
}

.hero__btn-outline {
    color: var(--color-primary-container, #4ade80);
    border-color: var(--color-primary-container, #4ade80);
    background: transparent;
    backdrop-filter: none;
}
.hero__btn-outline:hover {
    background: var(--color-primary-container, #4ade80);
    color: #ffffff;
}
