/* General Body and Page Styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px 40px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

header {
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

h1, main h2 {
    color: #0056b3;
    margin-bottom: 10px;
}

.description {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

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

select, input[type="text"], input[type="tel"], input[type="email"], input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Important for padding and width calculation */
    transition: border-color 0.3s;
}

select:focus, input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Voter Information Section */
#voterInfoSection {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

#voterInfoSection h2 {
    text-align: center;
    color: #0056b3;
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* Android APK Banner */
.apk-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.banner-text h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.banner-text p {
    margin: 0;
    color: #666;
}

.banner-button img {
    height: 50px;
    width: auto;
}

/* Footer Styling */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    color: #888;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    .apk-banner {
        flex-direction: column;
        text-align: center;
    }
    .banner-text {
        margin-bottom: 15px;
    }
}

/* --- Styling for the Success/Error Message Card --- */
.message-card {
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    border-left: 5px solid;
    background-color: #f0f9f2; /* Light green background for success */
    border-color: #28a745; /* Green border for success */
    color: #155724; /* Dark green text for success */
}

/* Optional: Styling for an error card if you want to use it later */
.message-card.error {
    background-color: #fdf0f0; /* Light red */
    border-color: #dc3545; /* Red */
    color: #721c24; /* Dark red */
}

.message-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.message-text, .message-instruction {
    margin: 0;
    line-height: 1.5;
}

.observer-code {
    font-size: 1.8em;
    font-weight: bold;
    color: #0056b3; /* A contrasting color */
    text-align: center;
    background-color: #e9ecef;
    padding: 10px;
    margin: 15px 0;
    border-radius: 5px;
    letter-spacing: 2px;
}

.hidden {
    display: none;
}