/* Custom validation styles matching CJBS theme */

/* Input validation */
.form-control, .form-select {
    font-family: "myriad-pro",verdana,arial,sans-serif;
    color: #171717;
    background-color: #ffffff;
    border: 1px solid #171717 !important;
    font-size: 14px;
}

.form-control:focus, .form-select:focus {
    border-color: #171717 !important;
    box-shadow: 0 0 0 3px rgba(175, 0, 21, 0.45) !important;
}

.form-control.input-validation-error, 
.form-select.input-validation-error {
    border: 1px solid #CE352C !important;
    background-color: #fff5f5;
}

.form-control.input-validation-error:focus, 
.form-select.input-validation-error:focus {
    border-color: #CE352C !important;
    box-shadow: 0 0 0 3px rgba(206, 53, 44, 0.25) !important;
}

/* Validation messages */
.field-validation-error {
    color: #CE352C;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.validation-summary-errors {
    color: #CE352C;
    background-color: #fff5f5;
    border: 1px solid #CE352C;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
}

/* Required field indicator */
.required::after,
label.required::after {
    content: " *";
    color: #CE352C;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Checkbox and Radio styles */
.form-check-input {
    border: 1px solid #171717;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #171717;
    border-color: #171717;
}

.form-check-input:focus {
    border-color: #171717;
    box-shadow: 0 0 0 3px rgba(175, 0, 21, 0.45);
}

/* Button styles */
.btn-warning {
    background-color: #FFB81C;
    border-color: #FFB81C;
    color: #171717;
    font-weight: bold;
}

.btn-warning:hover {
    background-color: #e5a519;
    border-color: #e5a519;
    color: #171717;
}

.btn-dark {
    background-color: #171717;
    border-color: #171717;
    color: #ffffff;
}

.btn-dark:hover {
    background-color: #000000;
    border-color: #000000;
    color:#ffd16b !important;
}

/* Card styles */
.card {
    border: 1px solid #726451;
    box-shadow: none;
}

.card-header {
    background-color: #ffd16b !important;
    font-family: 'Sabon LT W01 Roman',serif;
    font-size: 21px !important;
    font-weight: bold;
    color: #171717;
    border-bottom: 1px solid #726451;
}

/* Alert styles */
.alert-danger {
    background-color: #fff5f5;
    border-color: #CE352C;
    color: #CE352C;
}

.alert-info {
    background-color: #f0f8ff;
    border-color: #726451;
    color: #171717;
}

.alert-success {
    background-color: #f0fff4;
    border-color: #22c55e;
    color: #15803d;
}

/* Table styles */
.table {
    font-family: "myriad-pro",verdana,arial,sans-serif;
    color: #171717;
}

.table thead {
    border-bottom: 2px solid #171717;
}

.table-bordered {
    border: 1px solid #171717;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #171717;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Sabon LT W01 Roman',serif;
    color: #171717;
}

h3 {
    padding: 5px;
    border-bottom: 1px solid #726451;
}

/* Links */
a {
    color: #171717;
    text-decoration: none;
}

a:hover {
    color: #191970 !important;
}

a:active {
    color: #000000 !important;
}

/* Bootstrap overrides for border-warning */
.border-warning {
    border-color: #FFB81C !important;
}

.bg-warning {
    background-color: #FFB81C !important;
    color: #171717 !important;
}

.text-warning {
    color: #FFB81C !important;
}
