/* Hero widget styles */
.hero {
    position: relative;
    background: var(--blue);
    overflow: hidden;
    min-height: calc(-72px + 100svh);
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: -20%;
    z-index: 0;
    background: rgb(0, 0, 0);
}

.hero-bg-img {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    object-fit: cover;
    opacity: 0.3;
    will-change: transform;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-bg {
        height: 82%;
    }

    .hero-bg .hero-bg-img {
        top: 0;
        height: 100%;
    }
}

.hero-bg::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: 70%;
    height: 160%;
    background: radial-gradient(rgb(0, 27, 56) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.5;
}

.hero-bg::after {
    content: "";
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 40%;
    height: 60%;
    background: radial-gradient(rgb(5, 32, 61) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.4;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-top-box {
    display: flex;
    gap: 24px;
    flex-direction: row;
    align-content: flex-end;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-top-box .hero-badge-icon svg {
    width: 90px;
    height: auto;
    color: var(--white);
}

.hero-top-box .hero-cert-badge {
    width: 149px;
    height: auto;
}

@media (max-width: 768px) {
    .hero-top-box {
        align-items: center;
        justify-content: center;
        margin-bottom: 30px;
        gap: 10px;

        & .gas-safe-badge,
        .trust-badge,
        .g-badge {
            height: 70px;
        }
    }

    .hero-top-box .hero-badge-icon svg {
        width: 70px;
    }
}

.hero-content h1 {
    margin-bottom: 1.25rem;
    color: rgb(255, 255, 255);
}

.hero-content h1 .highlight {
    display: inline-block;
    position: relative;
    color: var(--label-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--blue-light);
    margin-bottom: 1.75rem;
    max-width: 500px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.hero-ctas .btn-outline {
    color: var(--blue-light);
}

.hero-ctas .btn-outline:hover {
    color: var(--blue-sky);
}

.trust-badges {
    display: grid;
    gap: 0.65rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #454545;
    justify-content: flex-start;
    flex-wrap: wrap;
    grid-template-columns: 1fr 1fr 1fr;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--blue-light);
}

.trust-badges svg {
    width: 20px;
    height: 20px;
    color: #bfbfbf;
    flex-shrink: 0;
}

.hero-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--light-gray);
}

.hero-form-card h3 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.35rem;
}

.hero-form-card .form-subtitle {
    font-size: 0.9rem;
    color: var(--mid-gray);
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    display: none;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-family: "DM Sans", sans-serif;
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--warm-white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: rgba(26, 63, 143, 0.08) 0 0 0 3px;
}

.form-group input::placeholder {
    color: var(--mid-gray);
}

.hero-form-card .btn {
    width: 100%;
    margin-top: 0.25rem;
}

.form-trust-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1.2rem;
    margin-top: 0.9rem;
    font-size: 14px;
    color: var(--mid-gray);
    font-weight: 500;
}

.form-trust-foot span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 16px;
    color: var(--charcoal);
}

.form-trust-foot svg {
    width: 18px;
    height: 18px;
    color: var(--blue);
}

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-content .btn {
        width: -webkit-fill-available;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-ctas {
        justify-content: center;
    }

    .trust-badges {
        justify-content: space-around;
        display: flex;
        flex-direction: column;
        align-content: stretch;
    }

    .trust-badges span {
        display: flex;
        gap: 20px;
        justify-content: flex-start;
        align-items: center;
    }

    .hero-form-card {
        max-width: 480px;
        margin: 0 auto;
    }
}

.gas-safe-badge {
    height: 100px;
    width: auto;
}

.trust-badge {
    height: 100px;
    width: auto;
}