/* THD Guest Registration Theme CSS */
/* Custom theme styles for Bootstrap 5.3.8 */

/* Custom button styles with gradient - very light grey to medium light grey */
.btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark,
button[type="submit"],
button[type="button"],
input[type="submit"],
input[type="button"] {
    background: linear-gradient(to bottom, #fafafa, #bec3d3) !important;
    background-image: linear-gradient(to bottom, #fafafa, #bec3d3) !important;
    border: 1px solid #bec3d3 !important;
    color: #212529 !important;
    text-shadow: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease-in-out;
}

/* Button hover states */
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-danger:hover,
.btn-warning:hover,
.btn-info:hover,
.btn-light:hover,
.btn-dark:hover,
button[type="submit"]:hover,
button[type="button"]:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: linear-gradient(to bottom, #e9ecef, #ced4da) !important;
    background-image: linear-gradient(to bottom, #e9ecef, #ced4da) !important;
    border-color: #ced4da !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* Button active/pressed states */
.btn:active,
.btn-primary:active,
.btn-secondary:active,
.btn-success:active,
.btn-danger:active,
.btn-warning:active,
.btn-info:active,
.btn-light:active,
.btn-dark:active,
button[type="submit"]:active,
button[type="button"]:active,
input[type="submit"]:active,
input[type="button"]:active,
.btn.active,
.btn:focus {
    background: linear-gradient(to bottom, #dee2e6, #ced4da) !important;
    background-image: linear-gradient(to bottom, #dee2e6, #ced4da) !important;
    border-color: #ced4da !important;
    transform: translateY(0px);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Disabled button states */
.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
button[type="submit"]:disabled,
button[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef) !important;
    background-image: linear-gradient(to bottom, #f8f9fa, #e9ecef) !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
    opacity: 0.65;
    transform: none;
    box-shadow: none !important;
}

/* Focus states for accessibility */
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
button[type="submit"]:focus-visible,
button[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Button size variations maintain the gradient */
.btn-sm {
    background: linear-gradient(to bottom, #f8f9fa, #dee2e6) !important;
    border: 1px solid #dee2e6 !important;
}

.btn-lg {
    background: linear-gradient(to bottom, #f8f9fa, #dee2e6) !important;
    border: 1px solid #dee2e6 !important;
}

/* Ensure ColdFusion generated buttons get the styling */
input[type="submit"],
input[type="button"],
input[type="reset"] {
    background: linear-gradient(to bottom, #f8f9fa, #dee2e6) !important;
    background-image: linear-gradient(to bottom, #f8f9fa, #dee2e6) !important;
    border: 1px solid #dee2e6 !important;
    color: #212529 !important;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Button group compatibility */
.btn-group .btn,
.btn-group-vertical .btn {
    background: linear-gradient(to bottom, #f8f9fa, #dee2e6) !important;
    border: 1px solid #dee2e6 !important;
}

/* Ensure dropdown buttons maintain styling */
.dropdown-toggle {
    background: linear-gradient(to bottom, #f8f9fa, #dee2e6) !important;
    border: 1px solid #dee2e6 !important;
}