* {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding: 20px;
    display: flex;
    justify-content: center;
    background-color: #bad4ac;
    background-image: url(assets/textured/bg.png);
    background-repeat: repeat;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.header-image{
    width: 100%;
    height: auto;
}

.welcome-image {
    width: 50%;
    margin-top: -2rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: #3d2815;
    text-align: center;
    position: relative;
    margin: -.5rem 0 2.5rem 0;
}

.stump-image {
    width: 15vw;
    margin-top: 1.5rem;
}

.form-container {
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 4rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: none;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #3d2815;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #FEFCF8;
}

.form-input:focus {
    outline: none;
    border-color: #3d2815;
    background: white;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
    transform: translateY(-1px);
}

.form-input:valid {
    border-color: #556B2F;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    width: 50%;
    padding: .5rem;
    background: #76903f;
    background-image: url(assets/textured/btn-bg.png);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.6rem;
    letter-spacing: -1.5px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 5px 5px #3f4119;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 5px #3f4119;
}

.submit-btn:active {
    transform: translateY(4px);
    box-shadow: 0 1px 5px #3f4119;
}

.success-message {
    font-weight: 700;
    /* justify-self: center; */
    margin: 2rem 0;
    position: relative;
    top: 30%;
    display: none;
    color: #3f4119;
    font-size: 1.5rem;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .header-image {
        width: 100%;
        height: auto;
    }

    .welcome-image{
        width: 65%;
        margin-top: -1rem;
        margin-bottom: 20px;
    }

    .stump-image {
        width: 40vw;
    }

    .disclaimer {
        margin-top: 1rem;
        margin-bottom: 2rem;
        font-size: .7rem;
    }
    .form-container {
        margin-top: 2rem;
        padding: 0rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .submit-btn {
        width: 80%;
        font-size: 1.3rem;
    }
}

/* Input validation styles */
.form-input.error {
    border-color: #b80b0b;
}

.form-input.error + .error-message {
    display: block;
}

.error-message {
    display: none;
    color: #B8860B;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}