* {
    font-family: Helvetica, serif;
}

.main {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.wrapper {
    margin-top: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-width: 962px;
    width: 576px;
    border: 10px solid #DDDDDD;
    background-color: #ffffff;
}

.title-box {
    width: 556px;
    height: 115px;
    background-color: #013d7a;
    color: white;
    text-align: start;
    margin: 0 auto;
    padding: 20px 10px;
}

.button-accept {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 1px solid black;
    border-radius: 12px;
    background-color: #013D7A;
    color: white;
    width: fit-content;
    margin: 20px auto 200px;
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.4);
}

.button-accept:hover {
    background-color: #013469;
}

.error {
    color: red;
}

.offer-input {
    position: relative;
    display: flex;
    align-items: center;
    width: 280px;
    height: 50px;
    padding: 0 12px;
    margin-top: 200px;
    border: 1px solid black;
    border-radius: 8px;
    background-color: #fff;
    box-sizing: border-box;
}

.offer-input input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding-right: 30px;
}

.offer-input .clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6A6A6A;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

h1 {
    font-size: 2.5rem;
    margin-top: 40px;
    text-align: center;
}

@media (max-width: 650px) {
    .wrapper {
        height: auto !important;
        max-height: none !important;
        justify-content: flex-start;
        margin-top: 150px;
        width: calc(100% - 30px);
        min-width: 300px;
        border-width: 5px;
        overflow-y: auto;
    }

    .title-box {
        width: 100%;
        min-width: 280px;
        height: auto;
        padding: 10px 5px;
    }

    .title-box h1 {
        font-size: 2rem;
    }

    .button-accept {
        min-width: 80px;
        font-size: 1rem;
        margin: 20px auto 150px;
    }

    .offer-input {
        width: calc(50px);
        min-width: 280px;
        margin-top: 100px;
    }
}
