/* ── How to Rent — Frontend Section ── */

.howtorent-front {
    padding: 72px 0;
}

.howtorent-front__inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ── Section heading ── */
.howtorent-front__header {
    text-align: center;
    margin-bottom: 56px;
}

.howtorent-front__heading {
    color: inherit;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    line-height: 1.3;
}

.howtorent-front__heading::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--theme-bg), var(--theme-accent));
    border-radius: 2px;
}

.howtorent-front__desc {
    max-width: 680px;
    margin: 28px auto 0;
    line-height: 1.75;
    color: #475569;
}

/* ── Steps grid ── */
.howtorent-front-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ── Step card ── */
.howtorent-front-step {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px 28px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Gradient top stripe */
.howtorent-front-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--theme-bg), var(--theme-accent));
}

.howtorent-front-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(var(--theme-accent-rgb, 25, 168, 129), 0.15);
}

/* ── Step number — watermark ── */
.howtorent-front-step__num {
    position: absolute;
    bottom: -12px;
    right: 10px;
    font-size: 7.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--theme-accent);
    opacity: 0.07;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    /* reset positioning from old style */
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    display: block;
    transform: none;
    box-shadow: none;
}

/* ── Icon ── */
.howtorent-front-step__icon {
    font-size: 36px !important;
    color: var(--theme-accent);
    margin-bottom: 16px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: rgba(var(--theme-accent-rgb, 25, 168, 129), 0.1);
    position: relative;
    z-index: 1;
    transition: background 0.3s ease, transform 0.3s ease;
}

.howtorent-front-step:hover .howtorent-front-step__icon {
    background: rgba(var(--theme-accent-rgb, 25, 168, 129), 0.18);
    transform: scale(1.08);
}

/* ── Title ── */
.howtorent-front-step__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

/* ── Description ── */
.howtorent-front-step__text {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.75;
    margin: 0;
    position: relative;
    z-index: 1;
}

.howtorent-front-step__text p {
    margin: 0 0 8px;
}

.howtorent-front-step__text p:last-child {
    margin-bottom: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .howtorent-front-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .howtorent-front {
        padding: 56px 0;
    }
    .howtorent-front__header {
        margin-bottom: 40px;
    }
    .howtorent-front-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
