body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f4;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: #2c2c2c;
    color: #f4f4f4;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .container {
    background: #444444;
    color: #f4f4f4;
}

h1 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333333;
}

body.dark-mode h1 {
    color: #f4f4f4;
}

label {
    display: block;
    margin: 10px 0 5px;
    color: #555555;
}

body.dark-mode label {
    color: #dddddd;
}

input,
select {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
    background: #ffffff;
    color: #000000;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode input,
body.dark-mode select {
    background: #666666;
    color: #f4f4f4;
    border-color: #888888;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #28a745;
    color: white;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

body.dark-mode button {
    background-color: #218838;
}

body.dark-mode button:hover {
    background-color: #1e7e34;
}

#result {
    margin-top: 20px;
    font-size: 1.2em;
    color: #333333;
}

body.dark-mode #result {
    color: #f4f4f4;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2em;
    }

    button {
        width: auto;
        padding: 10px 40px;
    }
}

.transport-fields {
    display: none;
}

.home {
    color: #000000;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

body.dark-mode .home {
    color: #4dabff;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-bottom: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cccccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

body.dark-mode .slider {
    background-color: #555555;
}

body.dark-mode input:checked+.slider {
    background-color: #1e90ff;
}
