body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #333; /* Consistent text color */
}

.container {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
}

form {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

form:hover {
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
}

fieldset {
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 15px;
}

legend {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border-radius: 5px;
}

h2 {
    color: #222;
    margin-bottom: 20px;
}

label {
    color: #555;
    font-weight: bold;
    margin-top: 10px;
    display: block;
    text-align: left;
    font-size: 14px;
}

.inline-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.inline-label input[type="checkbox"] {
    margin-right: 10px;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    text-align: center;
    border-radius: 5px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s ease-in-out;
    width: 220px;
    font-size: 13px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

input[type="text"], select {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, select:focus {
    border-color: #ff6600;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 102, 0, 0.2);
}

input[type="submit"] {
    width: 100%;
    background-color: #ff6600;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-bottom: 10px;
}

input[type="submit"]:hover {
    background-color: #ff4500;
    transform: scale(1.05);
}

input[type="submit"]:active {
    background-color: #e04000;
    transform: scale(0.98);
}

input:disabled {
    background-color: #f1f1f1;
    cursor: not-allowed;
    color: #888;
}

select:disabled {
    background-color: #f1f1f1;
    color: #888;
}

.guide-link {
    text-align: center;
}

.guide-link a {
    color: black;
    font-size: small;
    text-decoration: underline;
}

@media (max-width: 600px) {
    body {
        padding: 20px;
    }

    form {
        padding: 20px;
    }

    h2 {
        font-size: 18px;
    }

    input[type="text"], select {
        font-size: 14px;
    }
}
