* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", Arial, sans-serif;
}

body {
    height: 100vh;
    background: #eef3f7;
    display: flex;
    justify-content: center;
    align-items: center;
}

p {
    padding: 5px;
}

#arrow {
    cursor: pointer;
    transition: all 0.2s;
}

#arrow:hover {
    transform: scale(1.3);
}

#main {
    width: 360px;
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#inpdiv p,
#from p,
#to p {
    font-size: 15px;
    font-weight: 600;
    color: #2b2b2b;
}

#inp {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border: 1.8px solid #d0d5dd;
    border-radius: 8px;
    background: #f9fafb;
    transition: 0.2s;
}

#inp:focus {
    background: #ffffff;
    border-color: #3b82f6;
    outline: none;
}

#fromto {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1.8px solid #d0d5dd;
    border-radius: 8px;
    background: #f9fafb;
    transition: 0.2s;
    cursor: pointer;
}

.dropdown:hover {
    border-color: #3b82f6;
}

.dropdown img {
    width: 30px;
    height: 30px;
    border-radius: 4px;
}

select {
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #333333;
    cursor: pointer;
}

select:focus {
    outline: none;
}

#btn {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

#btn:hover {
    background: #2563eb;
}

#output {
    padding: 12px;
    background: #e8f2ff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1e3a8a;
    text-align: center;
    border: 1.5px solid #bfd7ff;
}

@media (max-width: 450px) {
    #main {
        width: 88%;
        padding: 22px;
    }

    #fromto {
        flex-direction: column;
        gap: 18px;
    }
}
