.hero {
    position: relative;
    padding: 120px 5% 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #e31e24, #c4161c);
    color: white;
}

/* BACKGROUND IMAGE */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./assets/img/front.png') no-repeat center center;
    background-size: cover;
    opacity: 0.15; /* makes it subtle */
    z-index: 1;
}

/* CONTENT ABOVE BG */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.hero p {
    margin-bottom: 40px;
}

/* SEARCH CARD */
.search-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    color: #1f2d3d;
}

/* HERO BACK IMAGE (right side, behind content) */
.hero-back-image {
    position: absolute;
    right: 0%;
    top: 50%;
    transform: translateY(-50%);
    width: 47%;
    height: 472px;
    background-color: rgba(255, 255, 255, 0.15);
    background-image: url(assets/img/front.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: 1;
    border-radius: 12px;
}

/* HERO FRONT IMAGE (right side, in front of content) */
.hero-front-image {
    position: absolute;
    right: 4%;
    top: -7%;
    bottom: 0;
    width: 54%;
    max-height: 133%;
    object-fit: contain;
    z-index: 3;
}

.front-image {
    position: absolute;
    right: 8%;
    bottom: 0;
    width: 380px;
    z-index: 3;
}

/* FORM */
.form-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.form-group select,
.form-group input[type="text"] {
    height: 50px;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 0 16px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #1f2d3d;
    outline: none;
    transition: border-color 0.2s;
}

.form-group select {

    cursor: pointer;
    appearance: auto;
}

.trackingType{
    flex: 1;
    height: 50px;
    padding: 0 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-group select:focus,
.form-group input:focus {
    border-color: #e31e24;
}

.form-group input[type="text"] {
    flex: 1;
    min-width: 180px;
}

.field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* BUTTON */
.track-btn {
    height: 50px;
    padding: 0 32px;
    background: #e31e24;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

/* RESPONSIVE */
@media(max-width: 992px) {
    .front-image {
        display: none;
    }
}

@media(max-width: 576px) {
    .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    .form-group select {
        min-width: 0;
        width: 100%;
    }
    .form-group input[type="text"] {
        min-width: 0;
    }
}