body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.container {
    position: relative;
    background-color: #fff;
    padding: 40px 50px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 650px;
    width: 100%;
    margin: 20px;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

input[type="text"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right .7em top 50%;
    background-size: .65em auto;
    cursor: pointer;
}

input[type="text"]:focus,
select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button[type="submit"]:hover {
    background-color: #2980b9;
}

button[type="submit"]:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.result-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.result-container h2 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.result-container p {
    margin: 10px 0;
    line-height: 1.6;
}

.result-container strong {
    color: #333;
}

.result-container a {
    color: #3498db;
    text-decoration: none;
}

.result-container a:hover {
    text-decoration: underline;
}

#error-message {
    font-weight: bold;
    padding: 10px;
    margin-top: 15px;
    text-align: center;
}

/* --- Overlay Styles --- */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(244, 247, 249, 0.96);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

/* Close button style */
.close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 1001;
}

.close-btn:hover {
    color: #333;
}

/* Style the actual content box within the overlay */
#overlay .result-container {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
    margin-top: 0;
    border: none;
}

#overlay #result-content h2 {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    font-size: 1.5rem;
}

#overlay #result-content p,
#overlay #error-message {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

#overlay #result-content strong {
    font-weight: 600;
}

#overlay #result-content a {
    font-size: 1.1rem;
    word-break: break-all;
}

#overlay #checklist-section h3 {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

#overlay #brief-checklist-list li {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* --- Updated Passport Loader Styles --- */
#passport-loader {
    text-align: center;
    padding: 20px 0;
}

#passport-loader .passport-emoji {
    display: inline-block;
    font-size: 6rem;
    animation: bounce-big 1.2s infinite ease-in-out;
}

#passport-loader p {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #555;
}

/* Bigger Bounce Animation */
@keyframes bounce-big {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }
}

/* --- End Loader Styles --- */

#result h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}