/* Modern Form Styles */

.form-group {
    max-width: 600px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input,
.form-select {
    margin-bottom: 20px;
}

.form-input,
.form-input:not(:placeholder-shown):invalid,
textarea,
select {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-sizing: border-box;
    /* Original inset shadow */
    box-shadow: rgb(204, 219, 232) 3px 3px 6px 0px inset, rgba(255, 255, 255, 0.5) -3px -3px 6px 1px inset;
    border-width: 2px;
    border-style: solid;
    border-color: #a3a3a3;
    border-radius: 6px;
    padding: 0.75rem;
    width: 100%;
    color: #333;
    font-size: 1rem;
}

.form-select[multiple],
.form-select[size] {
    height: 200px;
}

.form-select {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-sizing: border-box;
    /* Original inset shadow */
    box-shadow: rgb(204, 219, 232) 3px 3px 6px 0px inset, rgba(255, 255, 255, 0.5) -3px -3px 6px 1px inset;
    border-width: 2px;
    border-style: solid;
    border-color: #a3a3a3;
    border-radius: 6px;
    padding: 5px 8px;
    width: 100%;
    color: #333;
    font-size: 1rem;
}


/* Radios & Checkboxes */

input[type="radio"],
input[type="checkbox"] {
    margin-right: 0.5rem;
}

input[type="submit"] {
    margin-top: 20px;
    margin-bottom: 10px;
}

.form-input:focus,
.form-input:not(:placeholder-shown):invalid:focus,
textarea:focus,
select:focus {
    outline: none;
    /* Match top-left light source */
    box-shadow: rgb(204, 219, 232) 3px 3px 6px 0px inset, rgba(255, 255, 255, 0.5) -3px -3px 6px 1px inset;
    border-color: #0366d6;
}


/* Button Styles */

.btn {
    transition: background-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 1rem;
    text-align: center;
}


/* Original .btn-primary shadow */

.btn.btn-primary {
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    border-color: #0253b8;
    background-color: #0366d6;
    color: #ffffff;
}


/* Hover & Focus: Match top-left light source */

.btn.btn-primary:hover,
.btn.btn-primary:focus {
    box-shadow: rgba(0, 0, 0, 0.15) -3px -3px 5px 0px, rgba(2, 83, 184, 0.2) -3px -3px 6px 1px;
    border-color: #004494;
    background-color: #0253b8;
    color: #ffffff;
}


/* Active: Match top-left light source with inset feel */

.btn.btn-primary:active {
    box-shadow: rgba(0, 0, 0, 0.15) -3px -3px 5px inset, rgba(2, 83, 184, 0.25) -3px -3px 4px inset;
    border-color: #00326e;
    background-color: #003d82;
    color: #ffffff;
}

.btn-lg {
    padding: 0.35rem 0.6rem;
    width: 100%;
    height: 2rem;
    font-size: 0.9rem;
}