body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f8fa;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.form-container {
    background: #fff;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    min-width: 340px;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-container img {
    margin-bottom: 1.5rem;
}

.form-title {
    margin-bottom: 1.5rem;
    color: #222;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

label {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

input[type="text"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="email"] {
    margin-top: 0.4rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    background: #f9fafb;
    transition: border 0.2s;
}

input:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
}

button[type="submit"] {
    margin-top: 1.2rem;
    padding: 0.8rem 0;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button[type="submit"]:hover {
    background: #1d4ed8;
}

button.cancel-btn {
    background: #e5e7eb;
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    padding: 0.8rem 0;
    transition: background 0.2s;
}

button.cancel-btn:hover {
    background: #d1d5db;
}

.result-message {
    margin-bottom: 1.5rem;
    color: #222;
    font-size: 1.1rem;
    text-align: center;
}

.success-message {
    color: #2563eb;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

/* Popup Modal Styles */
#regionModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.region-modal-content {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 600px) {
    body {
        align-items: flex-start;
        justify-content: flex-start;
        min-height: 100vh;
        background: #f6f8fa;
    }

    .form-container {
        min-width: 0;
        max-width: 100vw;
        width: 100vw;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        padding: 1.2rem 0.5rem 1.5rem 0.5rem;
    }

    .form-title {
        font-size: 1.2rem;
    }

    input[type="text"],
    input[type="number"],
    input[type="url"],
    input[type="date"],
    input[type="email"] {
        font-size: 1rem;
        padding: 0.7rem 0.7rem;
    }

    button[type="submit"],
    button.cancel-btn {
        font-size: 1rem;
        padding: 0.8rem 0;
    }

    #regionModal {
        align-items: flex-end;
        justify-content: center;
        padding: 0;
    }

    .region-modal-content {
        max-width: 100vw;
        width: 100vw;
        min-height: 40vh;
        border-radius: 0 0 12px 12px;
        padding: 1.2rem 0.7rem 1.5rem 0.7rem;
        font-size: 1.05rem;
    }

    .region-modal-content h2 {
        font-size: 1.1rem;
    }

    .region-modal-content p {
        font-size: 1rem;
    }

    .region-modal-content button,
    .region-modal-content a {
        font-size: 1.05rem;
        padding: 0.9rem 0;
    }
}