.exchange-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Anuphan", sans-serif;
}

.exchange-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.exchange-header-title {
    color: #001854;
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    font-family: "Anuphan", sans-serif;
}

.converter-container {
    border-radius: 24px 24px 0px 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 91.1%;
    max-width: 900px;
    /* padding: 48px 32px 32px 32px; */
    padding: 32px 96px;
    background-color: #fff;
    box-shadow: 17px 16px 54.6px 0px #0028511C;
    gap: 42px;
}

.converter-container div {
    flex: 1;
    text-align: left;
    width: 100%;
    height: fit-content;
}

.converter-container label {
    color: #001854;
    font-size: 16px;
    font-weight: 600;
    font-family: "Anuphan", sans-serif;
}

.converter-container div:last-child {
    margin-right: 0px;
}

input[type="text"] {
    width: 40%;
    border: 1px solid #ECECED;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    text-align: left;
}

.currency-select {
    display: inline-flex;
    max-width: 200px;
    align-items: center;
    border: 1px solid #ECECED;
    border-radius: 8px;
    color: #212121;
    font-weight: bold;
}

.currency-select option {
    padding: 5px;
    display: flex;
    align-items: center;
}

.currency-select select {
    padding: 8px;
    background: transparent;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    margin-right: 24px;
}

.currency-select img {
    margin-left: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover !important;
}

.input-container {
    height: fit-content;
    display: flex;
    gap: 32px;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ECECED;
    border-radius: 12px;
    padding: 8px 16px;
    gap: 12px;
}

.input-group input {
    border: none;
    font-size: 32px;
    font-weight: 600;
    font-family: "Anuphan", sans-serif;
    flex-grow: 1;
    outline: none;
    color: #212121;
}

/* sender input */
.sender {
    position: relative;
    display: inline-block;
}

.sender-button {
    background-color: #fff;
    border: 1px solid #ECECED;
    border-radius: 8px;
    padding: 8px;
    margin-left: auto;
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100px;
}

.sender-button .flag-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.currency-value {
    font-size: 16px;
    font-weight: 400;
    font-family: "Anuphan", sans-serif;
    color: #212121;
    margin-right: 4px
}

/* recipient input */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    background-color: #fff;
    border: 1px solid #ECECED;
    border-radius: 8px;
    padding: 8px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 128px;
}

.dropdown-button .flag-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.caret {
    margin-left: auto;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.dropdown-menu {
    overflow: scroll;
    display: none;
    position: absolute;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 10;
    overflow-y: auto;
    height: 300px;
    width: 100%;
    background-color: #fff;
    margin: 12px 0px;
}

.dropdown-icon {
    width: 20px;
    height: 20px;
}

.dropdown-menu li {
    display: flex;
    justify-content: center;
    padding: 8px 0;
    cursor: pointer;
    max-width: 128px;
}

.dropdown-menu li a span {
    font-size: 16px;
    font-weight: 600;
}

.dropdown-menu li a {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.dropdown-menu li a .flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 10px;
}

.show {
    display: block;
}

.dropdown-menu>.active>a,
.dropdown-menu>.active>a:focus,
.dropdown-menu>.active>a:hover {
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #212121;
    text-decoration: none;
    outline: 0;
    background-color: #F8F8F8;
}

.dropdown-menu li.active,
.dropdown-menu li:focus,
.dropdown-menu li:hover {
    background-color: #F8F8F8;
    font-weight: bold;
    border-radius: 12px;
    width: 94%;
    margin-left: 4px;
}

.add-margin {
    margin-right: 12px;
}

.mobile {
    display: none;
    width: 100%;
}

.desktop-tablet {
    display: none;
    width: 100%;
    display: flex;
    justify-content: center;
}

.inline-error {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.inline-error-text {
    color: red;
    font-size: 16px;
    font-weight: 500;
}

.inline-error-icon {
    margin-right: 4px;
    color: red;
    font-size: 16px;
}

/* responsive */
@media only screen and (min-width: 1920px) and (max-width: 1920px) {

    /* For Projectors or Higher Resolution Screens (Full HD) */
    .converter-container {
        max-width: 1250px;
    }

    .exchange-header-title {
        font-size: 40px;
    }

    .input-group input {
        font-size: 32px !important;
    }

    .sender-button .flag-icon {
        width: 80px !important;
        height: 32px !important;
    }

    .dropdown-button .flag-icon {
        width: 80px !important;
        height: 36px !important;
    }

    .dropdown-menu {
        height: 600px !important;
    }

    .dropdown-menu li a .flag-icon {
        width: 40px !important;
        height: 28px !important;
    }

    .dropdown-menu li {
        max-width: 330px !important;
        height: 65px !important;
    }
}

@media screen and (min-width: 2560px) {

    /* For 4K Displays */
    .converter-container {
        max-width: 2530px;
    }

    .exchange-header-title {
        font-size: 40px;
    }

    .input-group {
        width: 100% !important;
    }

    .input-group input {
        font-size: 32px !important;
    }

    .sender-button .flag-icon {
        width: 80px !important;
        height: 40px !important;
    }

    .dropdown-button .flag-icon {
        width: 80px !important;
        height: 40px !important;
    }

    .dropdown-menu {
        height: 600px !important;
    }

    .dropdown-menu li a .flag-icon {
        width: 40px !important;
        height: 40px !important;
    }

    .dropdown-menu li {
        max-width: 330px !important;
        height: 100px !important;
    }
}

@media screen and (min-width: 3840px) {

    /* For 4K Displays (Ultra HD) */
    .converter-container {
        max-width: 3810px;
    }

    .exchange-header-title {
        font-size: 40px;
    }
}


/* tablet */
@media screen and (min-width:768px) {
    .mobile {
        display: none;
    }

    .desktop-tablet {
        display: block;
        display: flex;
        justify-content: center;
    }

    .currency-value {
        font-size: 16px;
        font-weight: 400;
    }
}

/* mobile */
@media screen and (max-width:767px) {

    .mobile {
        display: block;
        width: 100%;
    }

    .desktop-tablet {
        display: none;
    }

    .converter-container {
        gap: 24px;
    }

    .converter-container label {
        font-size: 14px;
    }

    .exchange-header-title {
        font-size: 20px;
    }

    .converter-container {
        border-radius: 24px 24px 24px 24px;
        padding: 24px 24px 24px 24px;
    }

    .input-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .input-group input {
        font-size: 20px !important;
    }

    .currency-value {
        font-size: 14px;
        font-weight: 500;
    }

    .converter-container div:last-child {
        margin-right: 0%;
    }

    .converter-container div:last-child label {
        margin-top: 16px;
    }
    
}

/* mobile XL*/
@media screen and (max-width:430px) {

    .converter-container label {
        font-size: 14px;
    }

    .exchange-header-title {
        font-size: 20px;
    }

    .currency-value {
        font-size: 14px;
        font-weight: 500;
    }
}

/* mobile L*/
@media screen and (max-width:425px) {

    .converter-container label {
        font-size: 14px;
    }

    .exchange-header-title {
        font-size: 20px;
    }

    .currency-value {
        font-size: 14px;
        font-weight: 500;
    }
}

/* mobile M*/
@media screen and (max-width:375px) {

    .converter-container label {
        font-size: 14px;
    }

    .exchange-header-title {
        font-size: 20px;
    }

    .converter-container div:last-child {
        margin-right: 0px;
    }

    .converter-container div:last-child label {
        margin-top: 16px;
    }

    .sender-button {
        width: 100px !important;
    }

    .currency-value {
        font-size: 14px;
        font-weight: 500;
    }

    .dropdown-button {
        width: 120px !important;
    }

    .inline-error-text {
        font-size: 14px;
    }

    .inline-error-icon {
        font-size: 12px;
    }
}

/* mobile S*/
@media screen and (max-width:320px) {

    .converter-container label {
        font-size: 14px;
    }

    .exchange-header-title {
        font-size: 20px;
    }

    .input-group input {
        font-size: 16px;
    }

    .input[type="text"] {
        font-size: 10px;
    }

    .currency-value {
        font-size: 14px;
        font-weight: 500;
    }

    .dropdown-menu li a {
        font-size: 14px;
    }

    .dropdown-menu>.active>a,
    .dropdown-menu>.active>a:focus,
    .dropdown-menu>.active>a:hover {
        font-size: 14px;
    }

    .add-margin {
        margin-right: 4px;
    }

    .converter-container div:last-child {
        margin-right: 0px;
    }

    .converter-container div:last-child label {
        margin-top: 16px;
    }

    .dropdown {
        margin-right: 0px !important;
    }

    .sender-button {
        width: 100px !important;
    }

    .dropdown-button {
        width: 100px !important;
    }

    .inline-error-text {
        font-size: 12px;
    }

    .inline-error-icon {
        font-size: 12px;
    }

}