* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hero-wrapper {
    width: 100%;
    height: 100vh;
    background-color: #eee;
    overflow: hidden;
}

.hero {
    position: relative;
    width: 80%;
    height: 100%;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 60px;
    font-weight: 300;
}

.hero h1 img {
    width: 90px;
    height: 90px;
    padding: 10px;
    object-fit: contain;
    transform: rotate(30deg);
    background-color: white;
    border-radius: 50%;
}

.hero h1:nth-of-type(2) {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-top: 15px;
}

.hero p {
    width: 40%;
    text-align: center;
    margin-top: 35px;
}

.hero form {
    position: fixed;
    bottom: 30px;
    width: 90%;
    height: 60px;
    border-radius: 20px;
    padding: 10px;
    background-color: white;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    z-index: 999;
}

.hero form input {
    border-radius: 20px;
        border: 2px solid transparent;
    background: 
        linear-gradient(white, white) padding-box,
        linear-gradient(45deg, transparent, rgba(140, 140, 32, 0.349)) border-box;
    padding: 0 10px;
}

.hero form input[type="file"] {
    display: flex;
    margin: auto;
    height: 100%;
    width: 100%;
}

.hero form button {
    position: relative;
    border-radius: 20px;
        border: 2px solid transparent;
    background: 
        linear-gradient(white, white) padding-box,
        linear-gradient(45deg, rgb(140, 140, 32), transparent) border-box;
    cursor: pointer;
    z-index: 1;
    transition: color .5s;
    overflow: hidden;
}

.hero form button:hover {
    color: #242424;
}

.hero form button::after {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background-color: beige;
    z-index: -1;
    transition: width .5s;
}

.hero form button:hover::after {
    width: 100%;
}

.error-msg {
    background: #ffe5e5;
    color: #d8000c;
    padding: 12px;
    margin: 20px 0;
    margin-bottom: 15px;
    border-radius: 8px;
    font-weight: 500;
}

.success-msg {
    background: #e6ffed;
    color: #1a7f37;
    padding: 12px;
    margin: 20px 0;
    margin-bottom: 15px;
    border-radius: 8px;
    font-weight: 500;
}

/* rings */

.hero .ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(128, 128, 128, 0.429);
    border-radius: 50%;
    pointer-events: none;
}

.hero .ring.one {
    width: 600px;
    height: 600px;
}

.hero .ring.two {
    width: 1000px;
    height: 1000px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Base tip style */
.hero .ring.two .tip {
    position: absolute;
    top: 50%;
    left: 40%;
    transform-origin: center;
    padding: 5px 30px;
    font-size: 18px;
        border: 3px solid transparent;
    background: 
        linear-gradient(white, white) padding-box,
        linear-gradient(45deg, transparent, #aea6fa8f) border-box;
    border-radius: 25px;
}

/* Position tips around circle */
.hero .ring.two .tip.one {
    --angle: 0deg;
}

.hero .ring.two .tip.two {
    --angle: 90deg;
}

.hero .ring.two .tip.three {
    --angle: 180deg;
}

.hero .ring.two .tip.four {
    --angle: 270deg;
}

/* Orbit animation */
.hero .ring.two .tip {
    animation: orbit 20s linear infinite;
}

@keyframes orbit {
    from {
        transform: rotate(var(--angle))
                   translateX(500px)
                   rotate(calc(-1 * var(--angle)));
    }
    to {
        transform: rotate(calc(360deg + var(--angle)))
                   translateX(500px)
                   rotate(calc(-360deg - var(--angle)));
    }
}

/* ---------- Responsive (phone friendly) ---------- */

/* Better mobile viewport handling */
.hero-wrapper{
    min-height: 100vh;
    min-height: 100svh; /* modern mobile-safe viewport */
}

/* General small screens */
@media (max-width: 900px) {

    .hero {
        width: 92%;
        padding: 40px 0 140px; /* space so fixed form doesn't cover content */
    }

    .hero h1 {
        font-size: 42px;
        text-align: center;
    }

    .hero h1:nth-of-type(2) {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 img {
        width: 68px;
        height: 68px;
        padding: 8px;
    }

    .hero p {
        width: min(92%, 520px);
        margin-top: 20px;
        font-size: 15px;
        line-height: 1.5;
    }

    /* Rings scale down */
    .hero .ring.one {
        width: 420px;
        height: 420px;
    }

    .hero .ring.two {
        width: 680px;
        height: 680px;
    }

    /* Adjust orbit radius to match smaller ring */
    @keyframes orbit {
        from {
            transform: rotate(var(--angle))
                    translateX(340px)
                    rotate(calc(-1 * var(--angle)));
        }
        to {
            transform: rotate(calc(360deg + var(--angle)))
                    translateX(340px)
                    rotate(calc(-360deg - var(--angle)));
        }
    }

    .hero .ring.two .tip {
        font-size: 16px;
        padding: 6px 18px;
        border-radius: 22px;
        left: 50%;
    }
}

/* Phones */
@media (max-width: 600px) {

    .hero {
        width: 94%;
        padding: 30px 0 210px; /* more space for taller mobile form */
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero h1 img {
        width: 58px;
        height: 58px;
    }

    /* Hide rings if they get too cramped (optional but clean) */
    .hero .ring.one {
        width: 320px;
        height: 320px;
        opacity: 0.35;
    }

    .hero .ring.two {
        width: 520px;
        height: 520px;
        opacity: 0.35;
    }

    /* Smaller orbit radius */
    @keyframes orbit {
        from {
            transform: rotate(var(--angle))
                    translateX(260px)
                    rotate(calc(-1 * var(--angle)));
        }
        to {
            transform: rotate(calc(360deg + var(--angle)))
                    translateX(260px)
                    rotate(calc(-360deg - var(--angle)));
        }
    }

    .hero .ring.two .tip {
        font-size: 14px;
        padding: 6px 14px;
    }

    /* Mobile form becomes stacked grid (2 columns) */
    .hero form {
        left: 50%;
        transform: translateX(-50%);
        bottom: 16px;
        width: calc(100% - 24px);
        height: auto;
        padding: 12px;
        border-radius: 18px;

        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* Make inputs comfortable on mobile */
    .hero form input,
    .hero form button {
        height: 46px;
        font-size: 14px;
    }

    /* Make file input span full width */
    .hero form input[type="file"] {
        grid-column: 1 / -1;
        height: auto;
        padding: 10px;
    }

    /* Button spans full width */
    .hero form button {
        grid-column: 1 / -1;
        height: 48px;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 14px; }

    .hero form {
        grid-template-columns: 1fr;
    }

    .hero form input[type="file"],
    .hero form button {
        grid-column: auto;
    }
}