body,
html {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.0);
    font-family: Avenir, Arial, sans-serif;
    position: relative;
}

.aligned-label {
    margin-left: 150px;
}

.error.aligned-label {
    margin-left: 150px;
}

form {
    background-color: white;
    padding: 50px;
    width: 2000px;
    margin: auto;
    box-sizing: border-box;
    position: relative;
}

#country,
#purchaser {
    margin-left: 150px;
    width: 430px;
}

#phone-number {
    width: 430px;
}

p {
    font-size: 20px;
    text-align: left;
    margin-right: 650px;
}

h2 {
    font-size: 80px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: "Paris2024 Semibold";
}

h1 {
    margin-left: 150px;

}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 400px;
    padding: 13px;
    margin-bottom: 0px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    position: relative;
}

input.error-icon,
select.error-icon {
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='18' height='18' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") no-repeat right;
    background-position: right 10px center;
    border: 1px solid #dc3545;
}

select.error-icon:focus {
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.8);
    outline: none;
}

input[type="checkbox"] {
    margin-left: 150px;
    margin-top: 3px;
}

button {
    background-color: #d3b257;
    color: black;
    padding: 15px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #000000;
    color: white;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-left: -610px;
}

.info-text {
    font-size: 0.875em;
    color: #555;
    margin-top: 20px;
}

a {
    color: #d3b257;
    text-decoration: none;
}

.form-group {
    display: flex;
    margin-right: 750px;
    margin-left: 150px;
    margin-bottom: 20px;
}

.form-group>div {
    width: 48%;
}

.phone-input-container {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px;
}

.phone-input-container input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1em;
}

.phone-input-container input::placeholder {
    color: #999;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
    padding: 15px;
    border-style: solid;
    border-radius: 4px;
    margin-bottom: 20px;
    margin-left: 150px;
    height: 25px;
    width: 900px;
    font-size: 16px;
}

.is-invalid {
    color: rgb(220, 53, 69);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-direction: row;
    margin-left: 0px;
}

.checkbox-container label {
    margin-bottom: 10px;
    margin-right: 800px;

}

.error {
    color: rgb(220, 53, 69);
    font-size: 14px;
}

#country-error,
#purchaser-error {
    margin-left: 150px;
}

#privacy-error {
    margin-left: 150px;
    margin-top: -10px;
}

.iti__flag {
    display: none;
}

.iti * {
    font-size: 16px;
}

.iti__country {
    font-size: 16px;
}

.iti__country-list {
    width: auto;
    max-width: 400px;
}

.iti__country-name {
    margin-right: 10px;
}

.iti__flag-box {
    margin: -10px;
    padding: -10px;
}

.close-button {
    position: fixed;
    top: 10px;
    right: 100px;
    background: black;
    border: none;
    font-size: 25px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    padding: 1px 5px;
    border-radius: 2px;
}

.close-button:hover {
    transform: rotate(90deg);
    color: #000;
    background: black;
    color: white;
    padding: 1px 5px;
    border-radius: 2px;
}

.form-container {
    display: block;
}

@media (max-width: 768px) {
    form {
        padding: 30px;
        width: 100%;
        margin-left: 120px;


    }

    #country,
    #purchaser {
        margin-left: 0;


    }

    input[type="checkbox"] {
        margin-left: 0;
    }

    .alert-danger {
        margin-left: 0;
        width: 70%;

    }

    h1 {
        margin-left: 0;
        font-size: 20px;
    }

    h2 {

        font-size: 40px;
    }

    p {
        font-size: 16px;
        margin-right: 100px;

    }


    .aligned-label,
    .error.aligned-label,
    #country-error,
    #purchaser-error,
    #privacy-error {
        margin-left: 0;
    }

    .form-group {
        flex-direction: column;
        margin-right: 0;
        margin-left: 0;
    }

    .form-group>div {
        width: 100%;
        margin-bottom: 10px;
    }

    .button-container {
        display: flex;
        justify-content: center;
        margin-left: -90px;


    }

    .checkbox-container {
        flex-direction: column;
    }

    .close-button {
        top: 10px;
        right: 10px;
        font-size: 25px;
        color: white;
        background: black;
        border: none;
    }

    .checkbox-container {
        display: flex;
        align-items: flex-start;
        margin-bottom: 10px;
        flex-direction: row;
        margin-left: 0px;


    }

    .checkbox-container label {
        margin-bottom: 10px;
        font-size: 14px;
        text-align: left;
        margin-right: 100px;
    }
}

form {
    width: auto;
    margin: 0;
}

p {
    margin: 0;
}

.form-group {
    margin-right: 0;
    margin-left: 0;
    gap: 3em;
}

.form-group>div {
    width: 100%;
    flex: 1;
}

input[type="text"], input[type="email"], input[type="tel"], select, #phone-number, .iti {
    width: 100%;
    box-sizing: border-box;
}

h1 {
    margin: 1em 0;
}

#country, #purchaser {
    width: calc(50% - 1em);
    margin: 0;
}

.aligned-label {
    margin-left: 0;
}

.checkbox-container label {
    margin-right: 0;
}

input[type="checkbox"] {
    margin-left: 0;
}

.button-container {
    margin: 0;
}

div.centered-content { 
 margin: 0
}


@media (max-width: 768px) {

    #country, #purchaser {
        width: 100%;
    }
}