@import url('variables.css');
@import url('header.css');
@import url('footer.css');

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

a {
    text-decoration: none;
}

select {
    cursor: pointer;
}

.section-container {
    padding: 32px 16px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
}

.section-title {
    font-size: 32px;
    text-align: center;
    color: var(--orange-400);
    font-weight: 600;
    text-transform: uppercase;
}

.option {
    display: flex;
    align-items: center;
    padding: 24px;
    border-radius: 8px;
    gap: 16px;
    cursor: pointer;
}

.bg-stars-white {
    background-image: url('../images/stars-bg-white.svg');
}

.bg-stars-green {
    background-image: url('../images/stars-bg-green.svg');
}

.bg-stars-yellow {
    background-image: url('../images/stars-bg-yellow.svg');
}

.bg-stars {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html,
body {
    height: 100%;
}

header {
    flex-shrink: 0;
}

main {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

footer {
    flex-shrink: 0;
}

body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track {
    background: var(--gray);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--orange-400);
}

.input-error {
    border: 2px solid #e3342f;
    background-color: #fdd;
    /* margin-bottom: 12px; */
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group-addon {
    cursor: pointer;
    position: absolute;
    left: 10px;
    top: 14px;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    padding-left: 40px;
    border-radius: 4px;
    border: 1px solid #ccc;
    height: 40px;
    font-size: 16px;
}

.error-message {
    color: red;
    text-align: center;
    width: 100%;
    display: block;
    /* margin-top: 5px; */
}

.custom-select-container {
    position: relative;
    width: 100%;
}

.country-input {
    padding-left: 40px !important;
    padding-top: 16px !important;
}

#country-search {
    width: 90%;
    padding-left: 40px;
    margin-right: -1px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-top: 2px;
}

.country-selector {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 99;
    max-height: 200px;
    overflow-y: scroll;
}

.country-option {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.country-option:hover {
    background-color: #f1f1f1;
}

.country-option img {
    margin-right: 10px;
    width: 20px;
    height: 15px;
}

.error-message {
    color: #e3342f;
    font-size: 0.875em;
    margin-top: 0.25em;
    min-height: 17px;
}

@media screen and (min-width: 768px) {
    .section-title {
        font-size: 42px;
    }

    .section-container {
        padding: 36px 32px;
    }

    .section-content {
        max-width: 900px;
    }
}

@media screen and (min-width: 1024px) {
    .section-title {
        font-size: 56px;
    }

    .section-container {
        padding: 64px 0px;
    }
}

@media screen and (min-width: 1280px) {
    .section-content {
        max-width: 1200px;
    }
}

@media screen and (min-width: 1440px) {
    .section-content {
        max-width: 1300px;
    }
}

.hover-glow {
    transition: all 0.35s ease-in-out;
}

.hover-glow:hover {
    filter: brightness(1.5) drop-shadow(1px 1px 32px white);
}
