/* everything about light theme*/
body.light-theme {
    background-color: #ffffff;
    color: #1e1e1e;
}
body.light-theme form {
    background-color: #f5f5f5;
    border-color: #d4d4d4;
}
body.light-theme legend {
    border-bottom-color: #d4d4d4;
}
body.light-theme label {
    color: #3a3a3a;
}
body.light-theme input[type="text"],
body.light-theme input[type="email"],
body.light-theme input[type="tel"],
body.light-theme textarea {
    background-color: #ffffff;
    border-color: #d4d4d4;
    color: #3a3a3a;
}


/* main contact form stylingss */
form {
    padding: 2rem;
    width: 100%;
    max-width: 600px;

    background-color: var(--secondary-background);
    border-radius: 8px;
    border: 1px solid #3e3e42;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

legend {
    width: 100%;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;

    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);

    border-bottom: 1px solid #3e3e42;
}

label {
    font-weight: bold;
    color: #d4d4d4;
    margin-bottom: -1.5rem; 
}
label:has(+ :required)::after {
    content: " *";
    color: #ff6b6b;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.75rem;
    
    color: var(--text-color);
    background-color: #2d2d30;

    border: 1px solid #3e3e42;
    border-radius: 4px;
    font-size: 1rem;
}

button[type="submit"] {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;

    background-color: var(--accent-color);
    color: white;
    font-size: 1rem;

    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

/* output styling */
output {
    display: block;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
}
output[name="error-output"] {
    background-color: #5c2323;
    color: #f1b0b0;
}
output[name="info-output"] {
    background-color: #23425c;
    color: #a6d2ff;
}