﻿body {
    font-family: 'Roboto', sans-serif;
}

#formContainer {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

#textBox {
    margin-top: 20px;
    text-align: left;
    clear: both;
}

#btnSubmit {
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.divider {
    height: 1px;
    background-color: #FFCC00;
    margin: 20px 0;
    width: 100%;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

label {
    display: inline-block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="date"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

    input[type="text"]:focus,
    input[type="date"]:focus,
    input[type="file"]:focus,
    select:focus,
    textarea:focus {
        border-color: #6600CC;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(102, 0, 204, 0.2);
    }

    select:disabled {
        background-color: #e9ecef;
        cursor: not-allowed;
    }

button[type="submit"] {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    background-color: #6600CC;
    color: #fff;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}

    button[type="submit"]:hover {
        background-color: #4d0099;
    }

    button[type="submit"]:disabled {
        background-color: #76598f;
        cursor: not-allowed;
        opacity: 0.8;
    }

.text-danger {
    display: block;
    margin-top: 5px;
    color: #dc3545;
}

.form-text {
    display: block;
    margin-top: 5px;
}

.text-muted {
    color: #6c757d;
}

.alert {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Success and error messages displayed above the form */
.status-alert {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 16px 20px 16px 52px;
    border: 1px solid transparent;
    border-left-width: 5px;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

    .status-alert::before {
        position: absolute;
        top: 50%;
        left: 18px;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        color: #fff;
        font-size: 14px;
        font-weight: bold;
        line-height: 1;
    }

    .status-alert.alert-success {
        color: #14532d;
        background-color: #f0fdf4;
        border-color: #86efac;
        border-left-color: #16a34a;
    }

        .status-alert.alert-success::before {
            content: "✓";
            background-color: #16a34a;
        }

    .status-alert.alert-danger {
        color: #7f1d1d;
        background-color: #fef2f2;
        border-color: #fca5a5;
        border-left-color: #dc2626;
    }

        .status-alert.alert-danger::before {
            content: "!";
            background-color: #dc2626;
        }

.required {
    color: #dc3545;
    font-weight: bold;
}

.required-fields-message {
    margin-bottom: 20px;
    color: #555;
    font-size: 14px;
}

.field-validation-error {
    display: block;
    margin-top: 5px;
    color: #dc3545;
}

.input-validation-error {
    border-color: #dc3545 !important;
}

    .input-validation-error:focus {
        border-color: #dc3545 !important;
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    }

@media (max-width: 700px) {
    #formContainer {
        max-width: 100%;
        padding: 20px;
        border-left: none;
        border-right: none;
    }

    .status-alert {
        width: calc(100% - 40px);
        max-width: none;
        margin: 0 20px 20px;
    }
}
