.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
    background-image: url("../image/background.webp");
    background-size: cover;
    background-position: center;
    padding: 32px 20px;
    box-sizing: border-box;
    gap: 30px;
}

.home-content {
    text-align: center;
    max-width: 660px;
    width: 100%;
}

.home-content h1 {
    font-size: 32px;
    color: #173366;
    margin: 0 0 18px;
    font-weight: 700;
}

.home-content .description {
    font-size: 17px;
    color: #2c3e50;
    margin: 0 auto 30px;
    line-height: 1.55;
    max-width: 540px;
}

/* ===== Seletor de Estado ===== */
.city-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    margin-bottom: 8px;
}

.selector-container {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.city-input {
    width: 100%;
    padding: 14px 48px 14px 20px;
    border: 2px solid #219348;
    border-radius: 30px;
    font-size: 16px;
    background: #fff;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: border-radius 0.3s, box-shadow 0.3s;
}

.city-input.active {
    border-radius: 30px 30px 0 0;
    border-bottom: none;
}

.dropdown-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #219348;
    font-size: 24px;
    cursor: pointer;
    pointer-events: none;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #219348;
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s, opacity 0.3s;
    z-index: 1000;
    box-sizing: border-box;
}

.dropdown-menu.active {
    max-height: 260px;
    opacity: 1;
    overflow-y: auto;
}

.dropdown-item {
    padding: 12px 20px;
    cursor: pointer;
    color: #2c3e50;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #219348;
}

.dropdown-item.selected {
    background-color: #e8f5e8;
    color: #219348;
    font-weight: 500;
}

.dropdown-item-label {
    flex: 1;
    text-align: left;
}

.dropdown-item.is-disabled {
    color: #9aa3af;
    cursor: not-allowed;
}

.dropdown-item.is-disabled:hover {
    background: transparent;
    color: #9aa3af;
}

.soon-badge {
    font-size: 11px;
    font-weight: 600;
    color: #8a93a3;
    background: #eef1f5;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.check-icon {
    color: #219348;
    font-size: 20px;
    opacity: 0;
}

.dropdown-item.selected .check-icon {
    opacity: 1;
}

.select-button {
    padding: 13px 46px;
    background: linear-gradient(135deg, #219348 0%, #20c997 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s;
}

.select-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* ===== Como funciona (horizontal) ===== */
.how-it-works {
    width: 100%;
    margin-top: 26px;
}

.hiw-title {
    display: block;
    color: #173366;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.steps {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.step {
    flex: 1 1 0;
    min-width: 150px;
    max-width: 210px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(33, 147, 72, 0.18);
    border-radius: 14px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #219348, #20c997);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step p {
    margin: 0;
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.45;
}

/* ===== Foto / logo do rodapé ===== */
.logo-footer {
    margin-top: 14px;
}

.logo-footer img {
    width: 108px;
    height: 108px;
    object-fit: cover;
    object-position: center top;
    opacity: 0.97;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(11, 42, 91, 0.18);
    border: 3px solid #fff;
}

/* ===== Responsividade ===== */
@media (max-width: 600px) {
    .home-content h1 { font-size: 25px; }
    .home-content .description { font-size: 15px; margin-bottom: 22px; }
    .steps { flex-direction: column; align-items: stretch; gap: 12px; }
    .step {
        max-width: 100%;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 14px;
        padding: 14px 16px;
    }
    .step p { font-size: 14px; }
}

/* Telas baixas (notebooks/TVs landscape): compacta para não rolar */
@media (max-height: 720px) {
    .home-container { gap: 16px; padding: 18px 20px; }
    .home-content h1 { font-size: 24px; margin-bottom: 10px; }
    .home-content .description { margin-bottom: 14px; font-size: 15px; }
    .city-selector { gap: 12px; }
    .how-it-works { margin-top: 8px; }
    .hiw-title { margin-bottom: 10px; }
    .step { padding: 12px; }
    .logo-footer { margin-top: 6px; }
    .logo-footer img { width: 64px; height: 64px; }
}
